public EventDepActionViewModel(BaseLayer baseLayer, Event eventTemplate, EventsDepActionsViewModel eventsDepActionsViewModel, IErrorCatch errorCatcher)
 {
     this.Actions = baseLayer.DssDbContext.Actions.Local;
     this.EditableEvent = eventTemplate;
     base.ErrorCatcher = errorCatcher;
     this.EventsDepActionsViewModel = eventsDepActionsViewModel;
     AddEventCommand = new DelegateCommand<object>(this.OnAddEvent);
 }
Exemplo n.º 2
0
 public EventDepActionViewModel(BaseLayer baseLayer, Event eventTemplate, EventsDepActionsViewModel eventsDepActionsViewModel, IErrorCatch errorCatcher)
 {
     this.Actions                   = baseLayer.DssDbContext.Actions.Local;
     this.EditableEvent             = eventTemplate;
     base.ErrorCatcher              = errorCatcher;
     this.EventsDepActionsViewModel = eventsDepActionsViewModel;
     AddEventCommand                = new DelegateCommand <object>(this.OnAddEvent);
 }
Exemplo n.º 3
0
 protected virtual void InitViewModels()
 {
     ActionsViewModel = new ActionsViewModel(BaseLayer, ActionErrorCatcher);
     ActionViewModel = new ActionViewModel(CreateActionTemplate(), ActionsViewModel, ActionErrorCatcher);
     EventsViewModel = new EventsViewModel(BaseLayer, EventErrorCatcher);
     EventViewModel = new EventViewModel(CreateEventTemplate(), EventsViewModel, EventErrorCatcher);
     TaskParamsViewModel = new TaskParamsViewModel(BaseLayer, TaskParamErrorCatcher);
     EventsDepActionsViewModel = new EventsDepActionsViewModel(BaseLayer, EventErrorCatcher);
     EventDepActionViewModel = new EventDepActionViewModel(BaseLayer, CreateEventTemplate(), EventsDepActionsViewModel, EventErrorCatcher);
 }