Esempio n. 1
0
        private void NewRuleClick(object sender, EventArgs e)
        {
            AddRule addRule = new AddRule(_settings);

            addRule.ShowDialog();
            DataBind();
        }
Esempio n. 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();
 }
Esempio n. 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();
        }
Esempio n. 4
0
 private void NewRuleClick(object sender, EventArgs e)
 {
     AddRule addRule = new AddRule(_settings);
     addRule.ShowDialog();
     DataBind();
 }