private void tsbAddCategory_Click(object sender, EventArgs e) { forFun = 1; AddCategoryForm acf = new AddCategoryForm(); acf.Show(); }
private void tsbUpdateCategory_Click(object sender, EventArgs e) { if (getCatId != "") { forFun = 2; AddCategoryForm acf = new AddCategoryForm(); acf.Show(); } else { MessageBox.Show("Please select a product"); } }