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(); }
private void pbxAdd_Click(object sender, EventArgs e) { UserProfileDetailsForm updf = new UserProfileDetailsForm(); updf.Show(); }