Exemplo n.º 1
0
 private void click_AddRule(object sender, RoutedEventArgs e)
 {
     AddRule window = new AddRule();
     ProxyRule newrule = null;
     window.ShowDialog();
     newrule = window.GetRule();
     rules.Add(newrule);
     WriteRules();
 }
Exemplo n.º 2
0
        private void click_AddRule(object sender, RoutedEventArgs e)
        {
            AddRule   window  = new AddRule();
            ProxyRule newrule = null;

            window.ShowDialog();
            newrule = window.GetRule();
            if (newrule != null)
            {
                rules.Add(newrule);
            }
            WriteRules();
        }