Ejemplo n.º 1
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);
 }
Ejemplo n.º 2
0
 public override void NextBtnClick_OnPageActions(object sender, System.Windows.RoutedEventArgs e)
 {
     if (ActionErrorCatcher.EntityGroupErrorCount != 0 || ActionsViewModel.Actions.Count == 0)
     {
         return;
     }
     EventsDepActionsViewModel.CheckForUpdatedData();
     ContentPage.Content = new PageEventsDepActionUE {
         DataContext = this
     };
     Navigate();
 }