Ejemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            OpenedForms.Init();
            Application.ApplicationExit += new EventHandler(Application_ApplicationExit);

            try { AppOptions.Load("./config.cfg"); }
            catch { AppOptions.Default(); MessageBox.Show("Cannot load config file. Loading factory default ...", "IO Error", MessageBoxButtons.OK, MessageBoxIcon.Information); }

            Application.Run(new TextEditor());
        }
Ejemplo n.º 2
0
        private void GlobalOptions_Load(object sender, EventArgs e)
        {
            AppOptions.Load("./config.cfg");

            if (AppOptions.KSPfolder == GetSteamInstall(Is64OS))
            {
                checkBox1.Checked = true;
            }
            else if (!String.IsNullOrWhiteSpace(AppOptions.KSPfolder))
            {
                KSPdir.Text = AppOptions.KSPfolder;
            }
        }