コード例 #1
0
        /// <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();
        }
コード例 #2
0
        /// <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();
        }