//public static Updater Updater = new Updater(); public MainForm(string[] args) { InitializeComponent(); webNotchBlog.Navigate("about:blank"); Settings = Settings.Load(); if (File.Exists(Settings.LauncherFile)) { } else { Setup(); } if (Settings.RememberUsername) { txtUsername.Text = Settings.Username; if (Settings.RememberPassword) { txtPassword.Text = Settings.Password; } } RefreshServers(); if (Settings.LaunchOnStartup) { Launch(); } }
private void LoadSettings() { Settings = MainForm.Settings; this.Text = "mcsLaunch Settings " + Settings.VersionString; checknow = false; chkRemUser.Checked = Settings.RememberUsername; if (chkRemUser.Checked) { chkRemPass.Checked = Settings.RememberPassword; chkRemPass.Enabled = true; } else { chkRemPass.Enabled = false; chkRemPass.Checked = false; } txtLauncher.Text = Settings.LauncherFile; if (Settings.SpecifiedOldLauncher) { txtOldLaunch.Text = Settings.OldLauncherFile; chkUseOldLaunch.Enabled = true; chkUseOldLaunch.Checked = Settings.UseOldLauncher; } else { txtOldLaunch.Text = "N/A"; chkUseOldLaunch.Enabled = false; chkUseOldLaunch.Checked = false; } chkCloseOnLaunch.Checked = Settings.CloseOnLaunch; checknow = true; chkLaunchOnStartup.Checked = false; chkLaunchOnStartup.Checked = Settings.LaunchOnStartup; chkEncrypt.Checked = Settings.EncryptLoginInfo; chkNotchBlog.Checked = Settings.ShowNotchBlog; txtToShow.Text = "" + Settings.NotchPostsToShow; RefreshServers(); }
public static void LoadDefaultSettings() { Settings = Settings.Defaults; Setup(); }