Exemple #1
0
 private void ButtonConfirmCategoryEdit_Click(object sender, EventArgs e)
 {
     new DBQuery().DBUpdateCategory(CategoryForm.CategoryName, CategoryForm.CategoryDescription, textBoxCategoryName.Text, textBoxCategoryDescription.Text);
     cf1.RefreshGrid("Categories");
     MessageBox.Show("Category updated!");
     Close();
 }
 private void ButtonConfirmCategoryAdd_Click(object sender, EventArgs e)
 {
     if (new DBQuery().DBInsertCategory(textBoxCategoryName.Text, textBoxCategoryDescription.Text))
     {
         cf1.RefreshGrid("Categories");
         MessageBox.Show("Category added!");
     }
 }