private void BtnSave_Click(object sender, EventArgs e) { if (String.IsNullOrEmpty(txtName.Text) || String.IsNullOrEmpty(txtLastName1.Text) || String.IsNullOrEmpty(txtLastName2.Text) || String.IsNullOrEmpty(txtEmail.Text)) { frmMessageBoxFillNull frm = new frmMessageBoxFillNull(); frm.ShowDialog(); } else { if (String.IsNullOrEmpty(txtPassword.Text)) { //Metodo de actulizar datos } else { //Metodo de actualizar datos con contraseña serviceDA.ChangePassword("ADM001", txtPassword.Text); } } }