Example #1
0
 private void frmUpdate_Load(object sender, EventArgs e)
 {
     AppDomain.CurrentDomain.UnhandledException += Program.CurrentDomain_UnhandledException;
     Strings.Load();
     GameContentManager.CheckForResources();
     Database.LoadOptions();
     InitLocalization();
     mUpdater = new Updater.Updater(ClientConfiguration.Instance.UpdateUrl, Path.Combine("version.json"), false, 5);
 }
Example #2
0
        private void frmLogin_Load(object sender, EventArgs e)
        {
            AppDomain.CurrentDomain.UnhandledException += Program.CurrentDomain_UnhandledException;
            Strings.Load();
            GameContentManager.CheckForResources();
            Database.LoadOptions();
            mOptionsLoaded     = true;
            EditorLoopDelegate = Main.StartLoop;
            if (Preferences.LoadPreference("username").Trim().Length > 0)
            {
                txtUsername.Text    = Preferences.LoadPreference("Username");
                txtPassword.Text    = "*****";
                mSavedPassword      = Preferences.LoadPreference("Password");
                chkRemember.Checked = true;
            }

            Database.InitMapCache();
            InitLocalization();
        }