예제 #1
0
        private void ctmControl_ItemClicked(object sender, EventArgs e)
        {
            ToolStripMenuItem menuItem = (ToolStripMenuItem)sender;
            ModuleControl     control  = (ModuleControl)menuItem.Tag;
            Module            module   = (Module)this.lvModules.FocusedItem.Tag;

            Information.AddMessage("Handling control '" + control.GetControlName() + "' for module '" + module.GetModuleName() + "'", InfoType.Debug);

            try
            {
                System.Diagnostics.Process.Start(control.GetControlPath(), control.GetControlArgs());
            }
            catch (Exception ex)
            {
                Information.HandleException(ex);
            }
        }
예제 #2
0
 public void AddControl(ModuleControl control)
 {
     this.Controls.Add(control);
 }