private void BtnProductOnStorage_Click(object sender, EventArgs e) { this.Hide(); ProductOnStorage product = new ProductOnStorage(); product.Show(); }
private void bnClose_Click(object sender, EventArgs e) { this.Close(); GC.Collect(); ProductOnStorage product = new ProductOnStorage(); product.Visible = true; }
private void btnBack_Click(object sender, EventArgs e) { this.Close(); GC.Collect(); ProductOnStorage storage = new ProductOnStorage(); storage.Visible = true; }
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("Вы не выбрали контрагента!"); } }