private void lblLogin_Click(object sender, EventArgs e) { //调用登录验证逻辑! bool bPass = BLLControl.Login(txtVssId.Text, txtPassword.Text, "VssDisk"); if (bPass) { MessageBox.Show("Wrong Username OR Password ! Please Retry !"); return; } else { Main mainForm = new Main(); mainForm.Show(); this.Hide(); } }