private void RuleButton_Click(object sender, RoutedEventArgs e)
        {
            Button ruleButton = (Button)e.Source;
            int    index      = int.Parse(ruleButton.Name.Split('_')[1]);
            Rule   rule       = _rules[index];
            //MessageBox.Show(rule.DescriptionString + " " + ruleButton.Name);
            // TODO
            EditRule window = new EditRule(rule, _status);

            window.ShowDialog();

            RefreshList();
        }
        private void AddButton_Click(object sender, RoutedEventArgs e)
        {
            Button addButton = (Button)e.Source;
            int    index     = int.Parse(addButton.Name.Split('_')[1]);
            Rule   rule      = _rules[index];
            // TODO
            //MessageBox.Show(rule.DescriptionString + " " + addButton.Name);
            Rule newRule = new Rule("New Rule", 0, 0, 0, 0);

            _rules.Insert(index + 1, newRule);

            RefreshList();

            EditRule window = new EditRule(newRule, _status);

            window.ShowDialog();

            RefreshList();
        }