Exemple #1
0
        public DungeonsMenu(IDungeonsViewController viewFactory)
        {
            this.SubMenuItems = new ObservableCollection <IMenuItem>();
            this.SubMenuItems.Add(new MenuItem(Properties.Resources.DungeonsTracker, viewFactory.DisplayDungeonTracker, viewFactory.CanDisplayDungeonTracker));
            this.SubMenuItems.Add(new MenuItem(Properties.Resources.DungeonTimer, viewFactory.DisplayDungeonTimer, viewFactory.CanDisplayDungeonTimer));

            this.SubMenuItems.Add(null); // Null for a seperator
            this.SubMenuItems.Add(new MenuItem(Properties.Resources.Configure, () => Commands.OpenDungeonSettingsCommand.Execute(null)));
        }
Exemple #2
0
        public DungeonsMenu(IDungeonsViewController viewFactory)
        {
            this.SubMenuItems = new ObservableCollection<IMenuItem>();
            this.SubMenuItems.Add(new MenuItem(Properties.Resources.DungeonsTracker, viewFactory.DisplayDungeonTracker, viewFactory.CanDisplayDungeonTracker));
            this.SubMenuItems.Add(new MenuItem(Properties.Resources.DungeonTimer, viewFactory.DisplayDungeonTimer, viewFactory.CanDisplayDungeonTimer));

            this.SubMenuItems.Add(null); // Null for a seperator
            this.SubMenuItems.Add(new MenuItem(Properties.Resources.Configure, () => Commands.OpenDungeonSettingsCommand.Execute(null)));
        }
Exemple #3
0
        /// <summary>
        /// Notifies the module that it has be initialized.
        /// </summary>
        public void Initialize()
        {
            logger.Debug("Initializing Dungeons Module");

            this.dungeonsController = this.container.GetExportedValue <IDungeonsController>();
            this.viewController     = this.container.GetExportedValue <IDungeonsViewController>();

            // Register for shutdown
            Commands.ApplicationShutdownCommand.RegisterCommand(new DelegateCommand(this.Shutdown));

            // Get the dungeons controller started
            this.dungeonsController.Start();

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

            logger.Debug("Dungeons Module initialized");
        }
        /// <summary>
        /// Notifies the module that it has be initialized.
        /// </summary>
        public void Initialize()
        {
            logger.Debug("Initializing Dungeons Module");

            this.dungeonsController = this.container.GetExportedValue<IDungeonsController>();
            this.viewController = this.container.GetExportedValue<IDungeonsViewController>();

            // Register for shutdown
            Commands.ApplicationShutdownCommand.RegisterCommand(new DelegateCommand(this.Shutdown));

            // Get the dungeons controller started
            this.dungeonsController.Start();

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

            logger.Debug("Dungeons Module initialized");
        }
Exemple #5
0
 public DungeonsMenu(IDungeonsViewController viewFactory)
 {
     this.SubMenuItems = new ObservableCollection <IMenuItem>();
     this.SubMenuItems.Add(new MenuItem(Properties.Resources.DungeonsTracker, viewFactory.DisplayDungeonTracker, viewFactory.CanDisplayDungeonTracker));
     this.SubMenuItems.Add(new MenuItem(Properties.Resources.DungeonTimer, viewFactory.DisplayDungeonTimer, viewFactory.CanDisplayDungeonTimer));
 }