Beispiel #1
0
 public CRuleViewModel(IRulesController controller, Window view, CRuleViewData viewData)
 {
     view.DataContext = this;
     _rulesController = controller;
     _view            = view;
     _viewData        = viewData;
 }
 public CClientViewModel(IRulesController controller, Window view)
 {
     view.DataContext = this;
     _view            = view;
     LastEvents       = new ObservableCollection <string>();
     _controller      = controller;
     if (controller.Mediator != null)
     {
         controller.Mediator.Register(EMessageTypes.MsgRuleSaved, RefreshList);
         controller.Mediator.Register(EMessageTypes.MsgRuleDeleted, RefreshList);
         controller.Mediator.Register(EMessageTypes.MsgRuleChecked, UpdateCheck);
         controller.Mediator.Register(EMessageTypes.MsgRuleUnchecked, UpdateCheck);
     }
     RefreshList();
 }
Beispiel #3
0
 public CRuleItemViewData(IRulesController controller, CRule rule)
 {
     _rulesController = controller;
     Rule             = rule;
 }