private void pbxAdd_Click(object sender, EventArgs e) { UserProfileDetailsForm details = new UserProfileDetailsForm(aux); details.Show(); this.Close(); }
private void pbxEdit_Click(object sender, EventArgs e) { int idUProfile = Int32.Parse(dgvUProfile.SelectedRows[0].Cells[0].Value.ToString()); UserProfileDetailsForm uProfileDetails = new UserProfileDetailsForm(idUProfile, aux); uProfileDetails.Show(); this.Close(); }