private void mnModuleMenuSettings_activate(object sender, EventArgs a) { BModuleItem module = BModuleManager.GetInstance().GetModule(OID); BConfigItem config = BConfigManager.GetInstance().GetModuleConfig(module.ConfigOID); LibBeline.Gui.ModulePropertyDialog dialog = new LibBeline.Gui.ModulePropertyDialog(config, parent); dialog.Run(); dialog.Dispose(); }
/// <summary>Handle Edit->Module preferences command from menu</summary> private void mnPreferencesModules_activate(object sender, EventArgs a) { TreeIter iter; TreeModel model; string oid; if (treeview2.Selection.GetSelected(out model, out iter)) { oid = (string) model.GetValue (iter, 1); // tree roots can't be run if (oid == "BelineInf" || oid == "BelineBench" || oid == "BelineSet") return; BModuleItem module = BModuleManager.GetInstance().GetModule(oid); BConfigItem config = BConfigManager.GetInstance().GetModuleConfig(module.ConfigOID); LibBeline.Gui.ModulePropertyDialog dialog = new LibBeline.Gui.ModulePropertyDialog(config, this); dialog.Run(); dialog.Dispose(); } }