Example #1
0
        private void BtnProductOnStorage_Click(object sender, EventArgs e)
        {
            this.Hide();
            ProductOnStorage product = new ProductOnStorage();

            product.Show();
        }
Example #2
0
        private void bnClose_Click(object sender, EventArgs e)
        {
            this.Close();
            GC.Collect();
            ProductOnStorage product = new ProductOnStorage();

            product.Visible = true;
        }
Example #3
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            this.Close();
            GC.Collect();
            ProductOnStorage storage = new ProductOnStorage();

            storage.Visible = true;
        }
Example #4
0
 private void BtnAdd_Click(object sender, EventArgs e)
 {
     if (IDCounteragent != null)
     {
         if (tableForProducts.Rows.Count > 0)
         {
             EntityProductOnStorage storage = new EntityProductOnStorage();
             storage.BuyProduct(IDCounteragent, tableForProducts);
             this.Close();
             GC.Collect();
             ProductOnStorage product = new ProductOnStorage();
             product.Visible = true;
         }
         else
         {
             MessageBox.Show("Вы не выбрали товар!");
         }
     }
     else
     {
         MessageBox.Show("Вы не выбрали контрагента!");
     }
 }