public override void Execute(IActionContext context) { EditTrayIconRuleForm form = new EditTrayIconRuleForm(); form.ShowDialog(Core.MainWindow); form.Dispose(); }
public IResource ShowEditTrayIconRuleForm(string name, string[] types, IResource[][] conditions, IResource[] exceptions, string iconFileName) { IResource result = null; EditTrayIconRuleForm form = new EditTrayIconRuleForm(name, types, conditions, exceptions, iconFileName); if (form.ShowDialog(Core.MainWindow) == DialogResult.OK) { result = form.ResultResource; } return(result); }