private void BtnSaveClick(object sender, EventArgs e) { Settings.Default.Username = txtUsername.Text; Settings.Default.Password = txtPassword.Text; Settings.Default.Autostart = chkAutostart.Checked; Settings.Default.Save(); Client = new GithubV3(Settings.Default.Username, Settings.Default.Password); CheckIssuesThread(); tmrGithub.Enabled = true; }
public FrmMain() { InitializeComponent(); txtUsername.Text = Settings.Default.Username; txtPassword.Text = Settings.Default.Password; chkAutostart.Checked = Settings.Default.Autostart; if (!Settings.Default.Autostart || string.IsNullOrEmpty(Settings.Default.Username) || string.IsNullOrEmpty(Settings.Default.Password)) return; Client = new GithubV3(Settings.Default.Username, Settings.Default.Password); tmrGithub.Enabled = true; CheckIssuesThread(); }