private void pbxAdd_Click(object sender, EventArgs e) { UserDetailsForm ud = new UserDetailsForm(); ud.Show(); this.Hide(); }
private void pbxEdit_Click(object sender, EventArgs e) { int idUser = Int32.Parse(dgvUser.SelectedRows[0].Cells[0].Value.ToString()); UserDetailsForm userDetailsForm = new UserDetailsForm(idUser); userDetailsForm.Show(); this.Hide(); }