Difference between revisions of "Tips and Tricks for developing a plugin in Visual Studio 2005 .NET"

From JRiverWiki
Jump to: navigation, search
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Create a new plugin ==
+
{{stub}}
Use the description of Mr ChriZ to create a new Plugin.
 
http://yabb.jriver.com/interact/index.php?topic=32294.0
 
  
== Autoresizing of plugin ==
+
[[Programming Plugins in C#.Net]] - Gives a (small) description on how to program a plugin in C#
Draw a Panel upon the UserControl and do the following:<br>
 
* Set 'Dock' Property to 'Fill'.<br>
 
* Set 'Autosize' Property to 'False'<br>
 
  
Your Panel will now automatically be resized to fit into the MC Plugin Area. Anything you put upon the Panel can scale to the size of the Panel using the 'Anchor' or 'Dock' Properties. Don't use the 'Autosize' Property!
+
[[MC Plugin Template for Visual Studio]] - Instructions on how to use the MC Plugin Template
  
== Handling an event ==
+
[http://msdn2.microsoft.com/en-us/library/ms364046(VS.80).aspx Create you own Visual Studio Templates]
This is a C# sample on how to handle events fired by MC.
 
  
private void MJEvent(String s1 , String s2, String s3 )
+
[[How to use MC methods in .Net projects]]
{
+
 
    switch (s1)
+
[[Category:Developer]]
    {
 
        case "MJEvent type: MCCommand":
 
            switch (s2)
 
            {
 
                case "MCC: NOTIFY_TRACK_CHANGE":
 
                    // Your code here
 
                    break;
 
 
 
                case "MCC: NOTIFY_PLAYLIST_ADDED":
 
                    // Your code here
 
                    break;
 
 
 
                case "MCC: NOTIFY_PLAYLIST_INFO_CHANGED":
 
                    // Your code here
 
                    break;
 
 
 
                case "MCC: NOTIFY_PLAYLIST_FILES_CHANGED":
 
                    // Your code here
 
                    break;
 
 
 
                case "MCC: NOTIFY_PLAYLIST_REMOVED":
 
                    // Your code here
 
                    break;
 
 
 
                case "MCC: NOTIFY_PLAYLIST_COLLECTION_CHANGED":
 
                    // Your code here
 
                    break;
 
 
 
                case "MCC: NOTIFY_PLAYLIST_PROPERTIES_CHANGED":
 
                    // Your code here
 
                    break;
 
 
                default:
 
                    // Unknown (new?) event
 
                    break;
 
            }
 
 
 
            break;
 
 
 
        default:
 
            // Unknown (new?) type
 
            break;
 
    }
 
}
 

Latest revision as of 00:51, 4 May 2015

This article is a stub. You can help the JRiver Wiki by expanding it.Programming Plugins in C#.Net - Gives a (small) description on how to program a plugin in C#

MC Plugin Template for Visual Studio - Instructions on how to use the MC Plugin Template

Create you own Visual Studio Templates

How to use MC methods in .Net projects