Ejemplo n.º 1
0
        public WvWMenu(IWvWViewController viewFactory, IWvWService wvwService, WvWUserData userData)
        {
            // Build up the sub menu items
            this.SubMenuItems = new ObservableCollection <IMenuItem>();

            // WvW Tracker
            this.SubMenuItems.Add(new MenuItem(Properties.Resources.OpenWvWTracker, viewFactory.DisplayWvWTracker, viewFactory.CanDisplayWvWTracker));
            this.SubMenuItems.Add(new CheckableMenuItem(Properties.Resources.WvWNotifications, false, () => userData.AreNotificationsEnabled, userData));
            this.SubMenuItems.Add(new MenuItem(Properties.Resources.Configure, () => Commands.OpenWvWSettingsCommand.Execute(null)));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Performs all neccesary shutdown activities for this module
        /// </summary>
        private void Shutdown()
        {
            logger.Debug("Shutting down WvW Module");

            // Shut down the WvW controller
            this.wvwController.Shutdown();

            // Shutdown the view controller
            this.viewController.Shutdown();

            // Make sure we have saved all user data
            // Note that this is a little redundant given the AutoSave feature,
            // but it does help to make sure the user's data is really saved
            WvWUserData.SaveData(this.UserData, WvWUserData.Filename);
        }
Ejemplo n.º 3
0
        public WvWController(IWvWService wvwService, IPlayerService playerService, IHasWvWMap hasMap, IGuildService guildService, WvWUserData userData)
        {
            logger.Debug("Initializing WvW Controller");
            this.wvwService    = wvwService;
            this.playerService = playerService;
            this.guildService  = guildService;
            this.currentMap    = hasMap;
            this.userData      = userData;
            this.timerCount    = 0;
            this.isStopped     = false;

            // Initialize the refresh timer
            this.objectivesRefreshTimer    = new Timer(this.Refresh);
            this.ObjectivesRefreshInterval = 500;

            // Initialize the start call count to 0
            this.startCallCount = 0;

            // Initialize the collections, but do it on a seperate thread since it can take a little time
            logger.Info("WvW Controller initialized");
        }