public void EditRule(Policy policy, Rule rule)
 {
     var editRuleView = new AddRule(policy, rule) { Tag = Properties.Resources.LblEditRule };
     var dialog = DialogBuilder.For(editRuleView).Build();
     editRuleView.AddRuleSuccess += (s, e) => { dialog.SetDialogResult(true); };
     dialog.ShowDialog();
 }
 public void AddRule(Policy policy)
 {
     var addRuleView = new AddRule(policy);
     var dialog = DialogBuilder.For(addRuleView).Build();
     addRuleView.AddRuleSuccess += (s, e) => { dialog.SetDialogResult(true); };
     dialog.ShowDialog();
 }