Ejemplo n.º 1
0
 public EventsMenu(IEventsViewController viewFactory, EventsUserData userData)
 {
     this.SubMenuItems = new ObservableCollection<IMenuItem>();
     this.SubMenuItems.Add(new MenuItem(Properties.Resources.OpenEventsTracker, viewFactory.DisplayEventsTracker, viewFactory.CanDisplayEventsTracker));
     this.SubMenuItems.Add(new CheckableMenuItem(Properties.Resources.EventNotifications, false, () => userData.AreEventNotificationsEnabled, userData));
     this.SubMenuItems.Add(new MenuItem(Properties.Resources.Configure, () => Commands.OpenEventSettingsCommand.Execute(null)));
 }
Ejemplo n.º 2
0
 public EventsMenu(IEventsViewController viewFactory, EventsUserData userData)
 {
     this.SubMenuItems = new ObservableCollection <IMenuItem>();
     this.SubMenuItems.Add(new MenuItem(Properties.Resources.OpenEventsTracker, viewFactory.DisplayEventsTracker, viewFactory.CanDisplayEventsTracker));
     this.SubMenuItems.Add(new CheckableMenuItem(Properties.Resources.EventNotifications, false, () => userData.AreEventNotificationsEnabled, userData));
     this.SubMenuItems.Add(new MenuItem(Properties.Resources.Configure, () => Commands.OpenEventSettingsCommand.Execute(null)));
 }
Ejemplo n.º 3
0
 public EventsMenu(IEventsViewController viewFactory, EventsUserData userData)
 {
     this.SubMenuItems = new ObservableCollection<IMenuItem>();
     this.SubMenuItems.Add(new MenuItem(Properties.Resources.OpenWorldBossTimers, viewFactory.DisplayWorldBossTimers, viewFactory.CanDisplayWorldBossTimers));
     this.SubMenuItems.Add(new MenuItem(Properties.Resources.OpenMetaEventTimers, viewFactory.DisplayMetaEventTimers, viewFactory.CanDisplayMetaEventTimers));
     this.SubMenuItems.Add(null); // Null for a seperator
     this.SubMenuItems.Add(new CheckableMenuItem(Properties.Resources.EventNotifications, false, () => userData.AreEventNotificationsEnabled, userData));
     this.SubMenuItems.Add(new MenuItem(Properties.Resources.Configure, () => Commands.OpenEventSettingsCommand.Execute(null)));
 }
Ejemplo n.º 4
0
 public EventsMenu(IEventsViewController viewFactory, EventsUserData userData)
 {
     this.SubMenuItems = new ObservableCollection <IMenuItem>();
     this.SubMenuItems.Add(new MenuItem(Properties.Resources.OpenWorldBossTimers, viewFactory.DisplayWorldBossTimers, viewFactory.CanDisplayWorldBossTimers));
     this.SubMenuItems.Add(new MenuItem(Properties.Resources.OpenMetaEventTimers, viewFactory.DisplayMetaEventTimers, viewFactory.CanDisplayMetaEventTimers));
     this.SubMenuItems.Add(null); // Null for a seperator
     this.SubMenuItems.Add(new CheckableMenuItem(Properties.Resources.EventNotifications, false, () => userData.AreEventNotificationsEnabled, userData));
     this.SubMenuItems.Add(new MenuItem(Properties.Resources.Configure, () => Commands.OpenEventSettingsCommand.Execute(null)));
 }
Ejemplo n.º 5
0
        /// <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");
        }
Ejemplo n.º 6
0
        /// <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");
        }