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