private void AddEmpB_Click(object sender, EventArgs e) { if (OldPass.Text.Equals("") || NewPass.Text.Equals("") || RNewPass.Text.Equals("")) { MessageBox.Show("Please,Fill The Input Fields!"); } else { businesslayer bl = new businesslayer(); bl.changePass(OldPass.Text, NewPass.Text, RNewPass.Text); } }