private void btnAdd_Click(object sender, System.EventArgs e)
 {
     frmNewProduct newForm = new frmNewProduct();
     Product product = newForm.GetNewProduct();
     if (product != null)
     {
         products += product;
     }
 }
Beispiel #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmNewProduct newForm = new frmNewProduct();
            Product       product = newForm.GetNewProduct();

            if (product != null)
            {
                products += product;
            }
        }
 private void btnAdd_Click(object sender, System.EventArgs e)
 {
     frmNewProduct newForm = new frmNewProduct();
     Product product = newForm.GetNewProduct();
     if (product != null)
     {
         products.Add(product);
         products.Save();
         FillProductListBox();
     }
 }
Beispiel #4
0
        private void btnAdd_Click(object sender, System.EventArgs e)
        {
            frmNewProduct newForm = new frmNewProduct();
            Product       product = newForm.GetNewProduct();

            if (product != null)
            {
                products.Add(product);
                products.Save();
                FillProductListBox();
            }
        }