Exemple #1
0
        private void CreateRule_Click(object sender, RoutedEventArgs e)
        {
            NewRule nr = new NewRule();

            nr.ShowDialog();
            if (null != nr.newRule)
            {
                rules.Add(nr.newRule);
            }

            MessageBox.Show("New rule successfully added, be sure to save the rule set to a rules file, if you are happy with the results", "New Rule Created", MessageBoxButton.OK, MessageBoxImage.Information);
            RefreshUI();
        }
Exemple #2
0
        private void CreateRule_Click(object sender, RoutedEventArgs e)
        {
            NewRule nr = new NewRule();
            nr.ShowDialog();
            if (null != nr.newRule)
                rules.Add(nr.newRule);

            MessageBox.Show("New rule successfully added, be sure to save the rule set to a rules file, if you are happy with the results", "New Rule Created", MessageBoxButton.OK, MessageBoxImage.Information);
            RefreshUI();
        }