public EventWithExtensionViewModel(Event eventTemplate, EventsWithExtensionsViewModel eventsWithExtensionsViewModel, IErrorCatch errorCatcher)
 {
     ErrorCatcher = errorCatcher;
     this.EventsWithExtensionsViewModel = eventsWithExtensionsViewModel;
     this.EditableEvent = eventTemplate;
     this.Name = eventTemplate.Name;
     this.AddEventCommand = new DelegateCommand<object>(this.OnAddEvent);
     this.IsExtendableEventParam = eventTemplate.EventParams.ToList()[0].Value;
     this.IsExtendableEvent = Convert.ToBoolean(IsExtendableEventParam);
 }
 public EventWithExtensionViewModel(Event eventTemplate, EventsWithExtensionsViewModel eventsWithExtensionsViewModel, IErrorCatch errorCatcher)
 {
     ErrorCatcher = errorCatcher;
     this.EventsWithExtensionsViewModel = eventsWithExtensionsViewModel;
     this.EditableEvent          = eventTemplate;
     this.Name                   = eventTemplate.Name;
     this.AddEventCommand        = new DelegateCommand <object>(this.OnAddEvent);
     this.IsExtendableEventParam = eventTemplate.EventParams.ToList()[0].Value;
     this.IsExtendableEvent      = Convert.ToBoolean(IsExtendableEventParam);
 }
 protected override void InitViewModels()
 {
     base.InitViewModels();
     ActionsWithExtensionsViewModel = new ActionsWithExtensionsViewModel(BaseLayer, ActionErrorCatcher);
     ActionWithExtensionViewModel = new ActionWithExtensionViewModel(CreateActionTemplate(), ActionsWithExtensionsViewModel, ActionErrorCatcher);
     EventsWithExtensionsViewModel = new EventsWithExtensionsViewModel(BaseLayer, EventErrorCatcher);
     EventWithExtensionViewModel = new EventWithExtensionViewModel(CreateEventTemplate(), EventsWithExtensionsViewModel, EventErrorCatcher);
 }