private void button1_Click(object sender, EventArgs e) { AppConfig.Instance.CompanyAddress = txtCompanyAddress.Text; AppConfig.Instance.CompanyName = txtCompanyName.Text; AppConfig.Instance.CompanyPhoneNumber = txtCompanyPhone.Text; AppConfig.Instance.SaveCompanySettting(); AutoStart auto = new AutoStart(); auto.EnabledThroughStartupMenu = true; Close(); }
/// <summary> /// Destroys the object created when <see cref="Current"/> was called. /// <see cref="Current"/> can still be used, but the object will be recreated /// </summary> public static void ResetCurrent() { current = null; }