Ejemplo n.º 1
0
        public int RegisterPlugin(JApplication AJVCSMakApp)
        {
            Vars.jvcsmak = AJVCSMakApp;

            Bitmap bmp = new Bitmap(16, 16);

            for (int x = 0; x < 16; x++)
            {
                for (int y = 0; y < 16; y++)
                {
                    bmp.SetPixel(x, y, Color.Green);
                }
            }

            stdole.StdPicture p = (stdole.StdPicture)AxHostPublic.GetIPictureDispFromPicture(bmp);

            //--- add actions --------------------------------------------------------
            AJVCSMakApp.AddMenuAction("FormActions_acTestaction1_Name",
                                      "Testplugin\\TestItem\\" + "Action from test plugin",
                                      "FormActions.acTestaction1.Hint", p, TestActionCB);

            //--- add modules --------------------------------------------------------
            AJVCSMakApp.LogMessage("C# Register Plugin");

            AJVCSMakApp.AddCommandType("Test command cs", "", Vars.stCategory, p, "txt", -1,
                                       PluginTestcommandcsCB);

            //Credits
            AJVCSMakApp.AddCreditInfo(Vars.struPluginName + " by " + Vars.struPluginAuthor);

            //Additional Info
            AJVCSMakApp.AddAdditionalInfo(Vars.struPluginHint);

            return(0);
        }
Ejemplo n.º 2
0
        public int RegisterPlugin(JApplication Application)
        {
            Vars._jedimake = Application;

            //ResourceManager rm = new ResourceManager("plugin", Assembly.GetExecutingAssembly());

            Bitmap bmp = new Bitmap(16, 16);

            //bmp = (Bitmap)rm.GetObject( "Batchfile");

            stdole.StdPicture p = (stdole.StdPicture)AxHostPublic.GetIPictureDispFromPicture(bmp);

            //--- add actions --------------------------------------------------------

            /*Application.AddMenuAction("FormActions_acTestaction1_Name",
             *      "Testplugin\\TestItem\\" + "Action from test plugin",
             *      "FormActions.acTestaction1.Hint", p, TestActionCB);*/

            //--- add modules --------------------------------------------------------
            Application.LogMessage("C# Register Plugin");

            //Application.AddCommandType("Test command cs", "", Vars.stCategory, p, "txt", -1,
            //	PluginTestcommandcsCB);

            //Credits
            Application.AddCreditInfo(Vars.struPluginName + " by " + Vars.struPluginAuthor);

            //Additional Info
            Application.AddAdditionalInfo(Vars.struPluginHint);

            return(0);
        }
Ejemplo n.º 3
0
        public int RegisterPlugin(JApplication Application)
        {
            Vars._jedimake = Application;

            Actions cs = new Actions();

            Bitmap image = new Bitmap(Properties.Resources.cs);

            stdole.StdPicture p = (stdole.StdPicture)AxHostPublic.GetIPictureDispFromPicture(image);

            //Actions
            Application.AddMenuAction("ActionVSCS2005", "Examples\\" + "Action from test plugin", "Hint VS 2005", p, cs);

            //Commands
            Application.LogMessage("C# Register Plugin");
            Application.AddCommandType("New Example VS C# 2010", "", Vars.stCategory, p, "txt", -1, new VSCS2005Create());

            //Credits
            Application.AddCreditInfo(Vars.struPluginName + " by " + Vars.struPluginAuthor);

            //Additional Info
            Application.AddAdditionalInfo(Vars.struPluginHint);

            return(0);
        }
Ejemplo n.º 4
0
        public int RegisterPlugin(JApplication Application)
        {
            Vars._jedimake = Application;

            Actions cs = new Actions();

            //ResourceManager rm = new ResourceManager("plugin", Assembly.GetExecutingAssembly());

            //Bitmap bmp = new Bitmap(16, 16);

            //bmp = (Bitmap)rm.GetObject( "Batchfile");

            stdole.StdPicture p = (stdole.StdPicture)AxHostPublic.GetIPictureDispFromPicture(cs.imageList1.Images[0]);

            //--- add actions --------------------------------------------------------
            Application.AddMenuAction("ActionVSCS2005",
                                      "Examples\\" + "Action from test plugin",
                                      "Hint VS 2005", p, cs);

            //--- add modules --------------------------------------------------------
            Application.LogMessage("C# Register Plugin");

            Application.AddCommandType("Example VS C# 2005", "", Vars.stCategory, p, "txt", -1,
                                       new VSCS2005Create());

            //Credits
            Application.AddCreditInfo(Vars.struPluginName + " by " + Vars.struPluginAuthor);

            //Additional Info
            Application.AddAdditionalInfo(Vars.struPluginHint);

            return(0);
        }