static void TreeView_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            TreeNode theItem = e.Node;

            if (theItem != null)
            {
                object[] args = theItem.Tag as object[];
                if (args != null && args[1] != null)
                {
                    PluginInvokeEventArgs a = new PluginInvokeEventArgs();
                    a.ConfigItem             = (PluginConfigItem)(args[0]);
                    a.ConfigItem.EventSender = sender;
                    (args[1] as ExecutePluginCallback)(sender, a);
                }
            }
        }
Пример #2
0
        protected virtual void TheMenuItem_Click(object sender, EventArgs e)
        {
            MenuItem theItem = sender as MenuItem;

            if (theItem != null && theItem.Tag != null && theItem.Tag is object[])
            {
                object[] args = theItem.Tag as object[];
                if (args[1] != null)
                {
                    PluginInvokeEventArgs a = new PluginInvokeEventArgs();
                    a.ConfigItem             = (PluginConfigItem)(args[0]);
                    a.ConfigItem.EventSender = sender;
                    (args[1] as ExecutePluginCallback)(sender, a);
                }
            }
        }
Пример #3
0
 void ExecutePlugin(object sender, PluginInvokeEventArgs e)
 {
     ExecutePlugin(e.ConfigItem);
 }
Пример #4
0
 protected virtual void TheMenuItem_Click(object sender, EventArgs e)
 {
     ToolStripMenuItem theItem = sender as ToolStripMenuItem;
     if (theItem != null && theItem.Tag != null && theItem.Tag is object[])
     {
         object[] args = theItem.Tag as object[];
         if (args[1] != null)
         {
             PluginInvokeEventArgs a = new PluginInvokeEventArgs();
             a.ConfigItem = (PluginConfigItem)(args[0]);
             a.ConfigItem.EventSender = sender;
             (args[1] as ExecutePluginCallback)(sender, a);
         }
     }
 }
Пример #5
0
 void ExecutePlugin(object sender, PluginInvokeEventArgs e)
 {
     ExecutePlugin(e.ConfigItem);
 }
 static void TreeView_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     TreeNode theItem = e.Node;
     if (theItem != null)
     {
         object[] args = theItem.Tag as object[];
         if (args != null && args[1] != null)
         {
             PluginInvokeEventArgs a = new PluginInvokeEventArgs();
             a.ConfigItem = (PluginConfigItem)(args[0]);
             a.ConfigItem.EventSender = sender;
             (args[1] as ExecutePluginCallback)(sender, a);
         }
     }
 }