Пример #1
0
 private void Shops_btn_Click(object sender, EventArgs e)
 {
     if (ShopsForm == null)
     {
         ShopsForm           = new Shops();
         ShopsForm.MdiParent = this;
         forms_container.Controls.Add(ShopsForm);
         ShopsForm.FormClosed += new FormClosedEventHandler(form_closing);
         //ShopsForm.Dock = DockStyle.Fill;
         ShopsForm.Show();
         ShopsForm.BringToFront();
     }
     else
     {
         ShopsForm.Activate();
         ShopsForm.BringToFront();
     }
 }
Пример #2
0
 private void form_closing(object sender, FormClosedEventArgs e)
 {
     HomeForm                = null;
     UserForm                = null;
     AccountsForm            = null;
     BarcodesForm            = null;
     BuyingForm              = null;
     Customers_SuppliersForm = null;
     Demand_Desk_SalesForm   = null;
     HomeForm                = null;
     HRForm       = null;
     ProductsForm = null;
     SaleForm     = null;
     ShopsForm    = null;
     StockForm    = null;
     ToolsForm    = null;
     UserForm     = null;
     ReceiptForm  = null;
 }