Пример #1
0
        private void OnStartup(object s, StartupEventArgs e)
        {
            string firstrun = Configuration.GetSetting("firstrun");

            if (firstrun == "Not Found")
            {
                Setup.CheckAppConfig();
                Setup.CheckLatexPath();
                Setup.CheckDocumentsPath();
                Configuration.SetSetting("firstrun", "false");
            }
            else
            {
                //#if DEBUG
                //                var vCulture = new CultureInfo("en-US");

                //                Thread.CurrentThread.CurrentCulture = vCulture;
                //                Thread.CurrentThread.CurrentUICulture = vCulture;
                //                CultureInfo.DefaultThreadCurrentCulture = vCulture;
                //                CultureInfo.DefaultThreadCurrentUICulture = vCulture;

                //#endif
                Window settings = new MainWindow();
                settings.Show();
            }
        }
        private void OnStartup(object s, StartupEventArgs e)
        {
            string firstrun = Configuration.GetSetting("firstrun");

            if (firstrun == "Not Found")
            {
                Setup.CheckAppConfig();
                Setup.CheckLatexPath();
                Setup.CheckDocumentsPath();
                Setup.CheckTmpPath();
                Configuration.SetSetting("firstrun", "false");
            }
            else
            {
                Window settings = new MainWindow();
                settings.Show();
            }
        }