示例#1
0
 static void Main(string[] args)
 {
     try
     {
         Game          game   = new Game();
         InitialScreen screen = new InitialScreen(game);
         screen.Draw();
         Console.ReadLine();
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
         Console.ReadLine();
     }
 }
示例#2
0
        private void InitializeMainWindow()
        {
            var regionManager = this.Container.Resolve <IRegionManager>();

            regionManager.RegisterViewWithRegion(RegionNames.Root, typeof(ShellView));
            ViewModelLocationProvider.Register <PackageExpertDialogView, PackageExpertDialogViewModel>();
            regionManager.RegisterViewWithRegion(RegionNames.PackageExpert, typeof(PackageExpertControl));

            var app                = this.Container.Resolve <IMsixHeroApplication>();
            var config             = this.Container.Resolve <IConfigurationService>();
            var releaseNotesHelper = new ReleaseNotesHelper(config);

            if (releaseNotesHelper.ShouldShowInitialReleaseNotes())
            {
                app.CommandExecutor.Invoke(null, new SetCurrentModeCommand(ApplicationMode.WhatsNew));
            }
            else
            {
                var helper = new InitialScreen(app, config);
                helper.GoToDefaultScreenAsync();
            }
        }
示例#3
0
 public void Do(Game game, BaseScreen currentScreen)
 {
     currentScreen = new InitialScreen(game);
     currentScreen.Draw("Loading not implemented");
 }
示例#4
0
        private void OnDismiss()
        {
            var initialScreenHelper = new InitialScreen(this.application, this.configurationService);

            initialScreenHelper.GoToDefaultScreenAsync();
        }