private void pbxAdd_Click(object sender, EventArgs e) { UserProfileDetailsForm cuserprofile = new UserProfileDetailsForm(); cuserprofile.Show(); this.Hide(); }
private void pbxEdit_Click(object sender, EventArgs e) { int idUserProfile = Int32.Parse(dgvUserProfile.SelectedRows[0].Cells[0].Value.ToString()); UserProfileDetailsForm UserProfileDetails = new UserProfileDetailsForm(idUserProfile); UserProfileDetails.Show(); this.Close(); }