Ejemplo n.º 1
0
 public CRuleViewModel(IRulesController controller, Window view, CRuleViewData viewData)
 {
     view.DataContext = this;
     _rulesController = controller;
     _view            = view;
     _viewData        = viewData;
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 public CRuleItemViewData(IRulesController controller, CRule rule)
 {
     _rulesController = controller;
     Rule             = rule;
 }