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))); }
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))); }
/// <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"); }
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)); }