Esempio n. 1
0
 public void OpenPluginMenu()
 {
     if (PluginPanel.activeInHierarchy)
     {
         PluginPanel.SetActive(false);
     }
     else
     {
         PluginPanel.SetActive(true);
     }
 }
Esempio n. 2
0
        public Plugin()
        {
            if (Plugin.mainForm == null)
            {
                Plugin.mainForm = new FrmPluginExample();
            }
            this.export = new Export();
            PluginPanel       pluginPanel        = new PluginPanel(this.main.panel, false);
            ToolStripMenuItem toolStripMenuItem1 = new ToolStripMenuItem(this._name);

            toolStripMenuItem1.Image = Properties.Resources.foca_img;
            PluginToolStripMenuItem toolStripMenuItem2 = new PluginToolStripMenuItem(toolStripMenuItem1);

            toolStripMenuItem1.Click += (EventHandler)((param0, param1) =>
            {
                this.main.panel.BringToFront();
                this.main.panel.Visible = true;
            });
            this.export.Add((object)pluginPanel);
            this.export.Add((object)toolStripMenuItem2);
            this.AssociateContextualMenu(this.export);
        }