private void button3_Click(object sender, EventArgs e) { try { log(); if (LogInBLL.Check == "true") { txtusername.Text = ""; txtpswrd.Text = ""; GBlogin.Hide(); btnfun1(); LogInBLL.Check = "False"; } else if (LogInBLL.Check == "False") { MessageBox.Show("\t\tAccount Has been blocked\t\t", "Try Again"); txtpswrd.Text = ""; } else { MessageBox.Show("\t\tInvalid User Name And Password\t\t", "Try Again"); } } catch { MessageBox.Show("\t\tPlease Provide UserName & Password\t\t"); } }
private void button10_Click(object sender, EventArgs e) { if (LogInBLL.Check == "False") { GBlogin.Show(); Name = null; Paswrd = null; btnfun(); } }