private void pbxSave_Click(object sender, EventArgs e)
      {
          CategoryDetailsForm categoryDetailForm = new CategoryDetailsForm();

          categoryDetailForm.Show();
          this.Hide();
      }
      private void pbxEdit_Click(object sender, EventArgs e)
      {
          int idCategory = Int32.Parse(dtgCategory.SelectedRows[0].Cells[0].Value.ToString());

          CategoryDetailsForm category = new CategoryDetailsForm(idCategory);

          category.Show();

          this.Close();
      }