private void btnSave_Click(object sender, EventArgs e) { if (!txtFName.Text.Equals("") && !txtLName.Text.Equals("")) { bool didSucceed = _controller.UserUpdate(txtFName.Text, txtLName.Text); if (didSucceed) { btnSave.Enabled = false; MessageBox.Show("User details successfully updated", "User Updated", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("User details could not be updated", "User Update Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } } }