private void LoginForm_Load(object sender, EventArgs e) { //ConnStr.connStr = "Data Source=127.0.0.1;Initial Catalog=mytao;User ID=lwc;Password=123456"; ConnStr.connStr = "Data Source=115.159.3.89;Initial Catalog=mytao;User ID=lwc;Password=liuwencai123jjF"; //ConnStr.connStr = "Data Source=aliuliang.net;Initial Catalog=mytao;User ID=lwc;Password=Jj2460776"; delegateDologin = doLogin; this.TopMost = true; if (AppConfig.getValue("s1").Trim() == "1") { try { string[] strArray = AppConfig.getValue("s2").Trim().Split('$'); if (strArray.Length == 2) { this.txt_userName.Text = strArray[0]; string str = Encrypt.md5Decrypt(strArray[1], "ll13715**tb!"); this.txt_pwd.Text = str.Substring(19, str.Length - 19); this.checkBox1.Checked = true; } } catch { } } if (AppConfig.getValue("s3").Trim() == "1") { this.checkBox2.Checked = true; } // ISSUE: method pointer if (checkBox2.CheckState == CheckState.Checked) { autoLoginAction = new Thread(new ThreadStart(ThreadDoLogin)); autoLoginAction.Start(); } }
private void LoginForm_Load(object sender, EventArgs e) { //ConnStr.connStr = "Data Source=127.0.0.1;Initial Catalog=mytao;User ID=lwc;Password=123456"; ConnStr.connStr = "Data Source=115.159.3.89;Initial Catalog=mytao;User ID=lwc;Password=liuwencai123jjF"; //ConnStr.connStr = "Data Source=aliuliang.net;Initial Catalog=mytao;User ID=lwc;Password=Jj2460776"; delegateDologin = doLogin; this.TopMost = true; if (AppConfig.getValue("s1").Trim() == "1") { try { string[] strArray = AppConfig.getValue("s2").Trim().Split('$'); if (strArray.Length == 2) { this.txt_userName.Text = strArray[0]; string str = Encrypt.md5Decrypt(strArray[1], "ll13715**tb!"); this.txt_pwd.Text = str.Substring(19, str.Length - 19); this.checkBox1.Checked = true; } } catch { } } if (AppConfig.getValue("s3").Trim() == "1") this.checkBox2.Checked = true; // ISSUE: method pointer if (checkBox2.CheckState == CheckState.Checked) { autoLoginAction = new Thread(new ThreadStart(ThreadDoLogin)); autoLoginAction.Start(); } }