private void btn_SaveSetting_Click(object sender, EventArgs e) { Global.AutoStart = check_AutoStart.Checked; if (check_AutoStart.Checked) { CommonFun.SetAutoRunWhenStart(true, "PersonPosition.exe", AppDomain.CurrentDomain.BaseDirectory + "PersonPosition.exe"); } else { CommonFun.SetAutoRunWhenStart(false, "PersonPosition.exe", AppDomain.CurrentDomain.BaseDirectory + "PersonPosition.exe"); } Global.AutoLogin = check_AutoLogin.Checked; if (check_AutoLogin.Checked) { Global.AutoLoginUser = Global.PresentUser; } else { Global.AutoLoginUser = "******"; } Global.AutoRunLED = check_AutoRunLED.Checked; if (radio_XiangDuiLock.Checked) { Global.TouMingLock = true; } else { Global.TouMingLock = false; } Global.IsShowBug = check_IsShowBug.Checked; Global.LockPassword = tex_LockPassword.Text.Trim(); Global.TimeToolTip = Convert.ToInt32(com_TimeToolTip.Text); }