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