/// <summary> /// Default constructor /// </summary> /// <param name="controller">The events controller</param> public EventNotificationWindow(IEventsController controller) { this.controller = controller; this.viewModel = new EventNotificationsWindowViewModel(this.controller); this.DataContext = this.viewModel; InitializeComponent(); this.Loaded += (o, e) => this.LoadWindowLocation(); }
/// <summary> /// Default constructor /// </summary> /// <param name="eventListController">The event tracker controller</param> public EventTrackerView(IEventsController eventListController) { logger.Debug("New EventTrackerView created"); this.controller = eventListController; this.viewModel = new EventTrackerViewModel(this.controller); this.DataContext = this.viewModel; InitializeComponent(); // Save the hight values for use when collapsing the window this.MinHeight = minHeight; this.MaxHeight = maxHeight; this.Height = GW2PAO.Properties.Settings.Default.EventTrackerHeight; this.Closing += EventTrackerView_Closing; this.beforeCollapseHeight = this.Height; }
/// <summary> /// Notifies the module that it has be initialized. /// </summary> public void Initialize() { logger.Debug("Initializing Events Module"); this.eventsController = this.container.GetExportedValue<IEventsController>(); this.viewController = this.container.GetExportedValue<IEventsViewController>(); // Register for shutdown Commands.ApplicationShutdownCommand.RegisterCommand(new DelegateCommand(this.Shutdown)); // Get the events controller started this.eventsController.Start(); // Initialize the view controller this.viewController.Initialize(); logger.Debug("Events Module initialized"); }
/// <summary> /// Notifies the module that it has be initialized. /// </summary> public void Initialize() { logger.Debug("Initializing Events Module"); this.eventsController = this.container.GetExportedValue <IEventsController>(); this.viewController = this.container.GetExportedValue <IEventsViewController>(); // Register for shutdown Commands.ApplicationShutdownCommand.RegisterCommand(new DelegateCommand(this.Shutdown)); // Get the events controller started this.eventsController.Start(); // Initialize the view controller this.viewController.Initialize(); logger.Debug("Events Module initialized"); }
public EventNotificationsWindowViewModel(IEventsController controller) { this.controller = controller; }
public WorldBossListViewModel(IEventsController eventTrackerController) { this.controller = eventTrackerController; this.ResetHiddenEventsCommand = new DelegateCommand(this.ResetHiddenEvents); this.SettingsCommand = new DelegateCommand(() => Commands.OpenEventSettingsCommand.Execute(null)); }
public MetaEventListViewModel(IEventsController eventTrackerController) { this.controller = eventTrackerController; this.ResetHiddenEventsCommand = new DelegateCommand(this.ResetHiddenEvents); this.SettingsCommand = new DelegateCommand(() => Commands.OpenEventSettingsCommand.Execute(null)); }
/// <summary> /// Default constructor /// </summary> /// <param name="eventTrackerController">The event tracker controller</param> public EventTrackerViewModel(IEventsController eventTrackerController) { this.controller = eventTrackerController; }