Exemple #1
0
        private void ctmConfig_itemClicked(object sender, EventArgs e)
        {
            ToolStripMenuItem menuItem = (ToolStripMenuItem)sender;
            ModuleConfig      config   = (ModuleConfig)menuItem.Tag;
            Module            module   = (Module)this.lvModules.FocusedItem.Tag;

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

            try
            {
                System.Diagnostics.Process.Start(config.GetConfigPath(), config.GetConfigArgs());
            }
            catch (Exception ex)
            {
                Information.HandleException(ex);
            }
        }
Exemple #2
0
 public void AddConfig(ModuleConfig config)
 {
     this.Configs.Add(config);
 }