Пример #1
0
 private void Demand_desk_btn_Click(object sender, EventArgs e)
 {
     if (Demand_Desk_SalesForm == null)
     {
         Demand_Desk_SalesForm           = new Demand_Desk_Sales();
         Demand_Desk_SalesForm.MdiParent = this;
         forms_container.Controls.Add(Demand_Desk_SalesForm);
         Demand_Desk_SalesForm.FormClosed += new FormClosedEventHandler(form_closing);
         //Demand_Desk_SalesForm.Dock = DockStyle.Fill;
         Demand_Desk_SalesForm.Show();
         Demand_Desk_SalesForm.BringToFront();
     }
     else
     {
         Demand_Desk_SalesForm.Activate();
         Demand_Desk_SalesForm.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;
 }