Exemple #1
0
        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();
        }
Exemple #2
0
 /// <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;
 }
Exemple #3
0
 /// <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;
 }