示例#1
0
        private void NewRuleClick(object sender, EventArgs e)
        {
            AddRule addRule = new AddRule(_settings);

            addRule.ShowDialog();
            DataBind();
        }
示例#2
0
 private void OpenSelectedRuleForEdit()
 {
     ListViewItem item = _rulesList.SelectedItems.Cast<ListViewItem>().FirstOrDefault();
     if (item == null) return;
     Rule rule = (Rule) item.Tag;
     AddRule addRule = new AddRule(_settings, rule);
     addRule.ShowDialog();
     DataBind();
 }
示例#3
0
        private void OpenSelectedRuleForEdit()
        {
            ListViewItem item = _rulesList.SelectedItems.Cast <ListViewItem>().FirstOrDefault();

            if (item == null)
            {
                return;
            }
            Rule    rule    = (Rule)item.Tag;
            AddRule addRule = new AddRule(_settings, rule);

            addRule.ShowDialog();
            DataBind();
        }
示例#4
0
 private void NewRuleClick(object sender, EventArgs e)
 {
     AddRule addRule = new AddRule(_settings);
     addRule.ShowDialog();
     DataBind();
 }