示例#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();
        }
示例#2
0
文件: AutoStart.cs 项目: ibnoe/parkir
 /// <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;
 }
示例#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;
 }