private void btn_login_Click(object sender, EventArgs e) { if (txtuid.Text.Equals("")) { MessageBox.Show("Please enter userid.", "Health Care Application."); } else if (txtpass.Text.Equals("")) { MessageBox.Show("Please enter password.", "Health Care Application."); } else { result = (bl.validateuser(txtuid.Text, txtpass.Text)); if (result != null) { HealthCareMaster hcm = new HealthCareMaster(); hcm.Show(); } else { MessageBox.Show("Userid and Password you entered don't match", "Health Care Application."); } } }
private void btn_login_Click(object sender, EventArgs e) { if(txtuid.Text.Equals("")) { MessageBox.Show("Please enter userid.", "Health Care Application."); } else if(txtpass.Text.Equals("")) { MessageBox.Show("Please enter password.", "Health Care Application."); } else { result=(bl.validateuser(txtuid.Text,txtpass.Text)); if(result!=null) { HealthCareMaster hcm = new HealthCareMaster(); hcm.Show(); } else { MessageBox.Show("Userid and Password you entered don't match", "Health Care Application."); } } }
private void adminToolStripMenuItem_Click(object sender, EventArgs e) { HealthCareMaster hc = new HealthCareMaster(); hc.Show(); }