/// <summary> /// The constructor for the ClassAttendanceDuringDateRangeReportView. /// Wires up all the necessary objects and events needed by this View. /// </summary> /// <param name="presenter"></param> /// <param name="eventAggregator"></param> /// <param name="configurationService"></param> public ClassAttendanceDuringDateRangeReportView(ReportsPresenter presenter, IEventAggregator eventAggregator, IConfigurationService configurationService) : this() { _presenter = presenter; _presenter.View = this; _eventAggregator = eventAggregator; _configurationService = configurationService; logger.Debug("Subscribing to ShellRefreshRequestedEvent."); ShellRefreshRequestedEvent shellRefreshRequestedEvent = _eventAggregator.GetEvent <ShellRefreshRequestedEvent>(); shellRefreshRequestedEvent.Subscribe(OnShellRefreshRequested, ThreadOption.UIThread); }
/// <summary> /// The constructor for the TeachersView. Wires up all the necessary /// objects and events needed by this View. /// </summary> /// <param name="presenter"></param> /// <param name="eventAggregator"></param> /// <param name="configurationService"></param> public TeachersView(TeachersPresenter presenter, IEventAggregator eventAggregator, IConfigurationService configurationService) : this() { _presenter = presenter; _presenter.View = this; _eventAggregator = eventAggregator; _configurationService = configurationService; logger.Debug("Subscribing to ShellRefreshRequestedEvent."); ShellRefreshRequestedEvent shellRefreshRequestedEvent = _eventAggregator.GetEvent <ShellRefreshRequestedEvent>(); shellRefreshRequestedEvent.Subscribe(OnShellRefreshRequested, ThreadOption.UIThread); }
/// <summary> /// The constructor for the DepartmentsView. Wires up all the necessary /// objects and events needed by this View. /// </summary> /// <param name="presenter"></param> /// <param name="eventAggregator"></param> /// <param name="configurationService"></param> public DepartmentsView(DepartmentsPresenter presenter, IEventAggregator eventAggregator, IConfigurationService configurationService) : this() { _presenter = presenter; _presenter.View = this; _eventAggregator = eventAggregator; _configurationService = configurationService; logger.Debug("Subscribing to ShellRefreshRequestedEvent."); ShellRefreshRequestedEvent shellRefreshRequestedEvent = _eventAggregator.GetEvent <ShellRefreshRequestedEvent>(); shellRefreshRequestedEvent.Subscribe(OnShellRefreshRequested, ThreadOption.UIThread); // Hook into the CanExecuteEvent of the DataGrid so that we can look for // when user tries to Delete DepartmentsDataGrid.AddHandler(CommandManager.CanExecuteEvent, new CanExecuteRoutedEventHandler(OnCanExecuteRoutedEventHandler), true); }
/// <summary> /// The constructor for the ChildrenCheckInView. Wires up all the necessary /// objects and events needed by this View. /// </summary> /// <param name="presenter"></param> /// <param name="eventAggregator"></param> public ChildrenCheckInView(ChildrenCheckInPresenter presenter, IEventAggregator eventAggregator) : this() { _presenter = presenter; _presenter.View = this; _eventAggregator = eventAggregator; logger.Debug("Subscribing to ShellLockedStateChangedEvent."); ShellLockedStateChangedEvent shellLockedStateChangedEvent = _eventAggregator.GetEvent <ShellLockedStateChangedEvent>(); shellLockedStateChangedEvent.Subscribe(OnShellLockStateChanged, ThreadOption.UIThread); logger.Debug("Subscribing to ShellRefreshRequestedEvent."); ShellRefreshRequestedEvent shellRefreshRequestedEvent = _eventAggregator.GetEvent <ShellRefreshRequestedEvent>(); shellRefreshRequestedEvent.Subscribe(OnShellRefreshRequested, ThreadOption.UIThread); }
/// <summary> /// The constructor for the FamilyQuickEntryView. Wires up all the necessary /// objects and events needed by this View. /// </summary> /// <param name="presenter"></param> /// <param name="eventAggregator"></param> /// <param name="configurationService"></param> public FamilyQuickEntryView(FamilyQuickEntryPresenter presenter, IEventAggregator eventAggregator, IConfigurationService configurationService) : this() { try { _presenter = presenter; _presenter.View = this; _eventAggregator = eventAggregator; _configurationService = configurationService; logger.Debug("Subscribing to ShellRefreshRequestedEvent."); ShellRefreshRequestedEvent shellRefreshRequestedEvent = _eventAggregator.GetEvent <ShellRefreshRequestedEvent>(); shellRefreshRequestedEvent.Subscribe(OnShellRefreshRequested, ThreadOption.UIThread); } catch (Exception ex) { DisplayExceptionDetail(ex); } }