Exemple #1
0
        public override void Execute(IActionContext context)
        {
            EditTrayIconRuleForm form = new EditTrayIconRuleForm();

            form.ShowDialog(Core.MainWindow);
            form.Dispose();
        }
Exemple #2
0
        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);
        }