/// <summary> /// Initializes this instance. /// </summary> public void Initialize() { this.regionManager.AddToRegion( RegionNames.ToolbarRightRegion, new ToolBarItemModel() { Text = "Event", Icon = "/GameEngine;component/Resources/Clock.png", Command = new DelegateCommand(delegate { var page = this.regionManager.Regions[RegionNames.PrimaryPageRegion].GetView(PageNames.Event); this.regionManager.Regions[RegionNames.PrimaryPageRegion].Activate(page); }) }); this.Game = container.GetExportedValue <KickAndPunch>(); this.Game.Run(); }
/// <summary> /// Initializes this instance. /// </summary> public void Initialize() { this.regionManager.AddToRegion( RegionNames.ToolbarRightRegion, new ToolBarItemModel() { Text = "Event", Icon = "/GameEngine;component/Resources/Clock.png", Command = new DelegateCommand(delegate { var page = this.regionManager.Regions[RegionNames.PrimaryPageRegion].GetView(PageNames.Event); this.regionManager.Regions[RegionNames.PrimaryPageRegion].Activate(page); }) }); this.Game = container.GetExportedValue<KickAndPunch>(); this.Game.Run(); }