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