private void UBtnUpdate_MouseClick(object sender, MouseEventArgs e) { try { UserAdd objUserAdd = new UserAdd(1, this); objUserAdd.Show(); } catch (Exception exp) { MessageBox.Show(exp.Message, "Exception Error"); } }
private void UBtnAddNewUser_MouseClick(object sender, MouseEventArgs e) { try { // simply go to useradd form UserAdd objUserAdd = new UserAdd(0, this); objUserAdd.Show(); } catch (Exception exp) { MessageBox.Show(exp.Message, "Exception Error"); } }