コード例 #1
0
ファイル: EventsMenu.cs プロジェクト: reecebedding/gw2pao
 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)));
 }
コード例 #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)));
 }
コード例 #3
0
ファイル: EventsMenu.cs プロジェクト: SamHurne/gw2pao
 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)));
 }
コード例 #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)));
 }
コード例 #5
0
ファイル: EventsModule.cs プロジェクト: reecebedding/gw2pao
        /// <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");
        }
コード例 #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");
        }