예제 #1
0
 private void SetLanguage(GameLanguage language)
 {
     LegacyBootstrapper.UserConfig.GameLanguage = language;
     LegacyBootstrapper.UserConfig.Save(LegacyBootstrapper.UserConfigFilePath);
     LegacyBootstrapper.SetUILanguage();
     NavigationService.GoBack();
 }
예제 #2
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            AppDomain.CurrentDomain.UnhandledException += (o, exArgs) =>
            {
                var logger = LoggerFactory.GetLogger();
                var ex     = (Exception)exArgs.ExceptionObject;
                logger.Fatal(ex, ex.Message);
            };

            LegacyBootstrapper.LoadUserConfig();
            LegacyBootstrapper.SetUILanguage();
        }
예제 #3
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            LegacyBootstrapper.LoadUserConfig();
            LegacyBootstrapper.SetUILanguage();
            Steam.ConvertToSteam(LegacyBootstrapper.UserConfig.GameFilesPath);

            var dialog = new GenericMessageDialog(Celeste_Launcher_Gui.Properties.Resources.SteamConverterSuccess, DialogIcon.None, DialogOptions.Ok);

            dialog.ShowDialog();

            Current.Shutdown();
        }
        private void SetLanguage(GameLanguage language)
        {
            LegacyBootstrapper.UserConfig.GameLanguage = language;
            LegacyBootstrapper.SetUILanguage();

            foreach (var window  in App.Current.Windows)
            {
                if (window is MainWindow mainWindow)
                {
                    mainWindow.NavigationFrame.Navigate(new Uri("Pages/EmptyPage.xaml", UriKind.Relative));
                }
            }
        }