Beispiel #1
0
        private void editNewProduct_Click(object sender, EventArgs e)
        {
            whatToDo = false;
            AddOrEditProduct ap = new AddOrEditProduct(whatToDo, productID);

            ap.ShowDialog();
            UpdateProducts();
        }
Beispiel #2
0
        private void addNewProduct_Click(object sender, EventArgs e)
        {
            whatToDo = true;
            AddOrEditProduct ap = new AddOrEditProduct(whatToDo);

            ap.ShowDialog();
            UpdateProducts();
        }