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

            if (product != null)
            {
                products += product;
            }
        }
Пример #3
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();
     }
 }
Пример #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();
            }
        }