Пример #1
0
        }//end setPanelsPosition

        private void createSubForms()
        {
            //  bankMainForm = new OrdersMainForm(MainController.GetBankDataTable(), formVisualElements.BankPanel.Width, formVisualElements.BankPanel.Height);
            bankMainForm = new GeneralDataGridForm(MainController.GetBankDataTable, formVisualElements.BankPanel.Width, formVisualElements.BankPanel.Height, new List <int>(), new List <ClickableDelegate>());
            formVisualElements.BankPanel.Controls.Add(bankMainForm);
            updatebleForms.Add(bankMainForm);
            bankMainForm.Show();

            //  WarehouseMainForm = new OrdersMainForm(MainController.GetWarehouseDataTable(), formVisualElements.WarehousePanel.Width, formVisualElements.WarehousePanel.Height);
            WarehouseMainForm = new GeneralDataGridForm(MainController.GetWarehouseDataTable, formVisualElements.WarehousePanel.Width, formVisualElements.WarehousePanel.Height, new List <int>(), new List <ClickableDelegate>());
            formVisualElements.WarehousePanel.Controls.Add(WarehouseMainForm);
            updatebleForms.Add(WarehouseMainForm);
            WarehouseMainForm.Show();

            //  production
            ProductionMainForm = new GeneralDataGridForm(MainController.GetProductionsDataTable, formVisualElements.ProductionPanel.Width, formVisualElements.ProductionPanel.Height, new List <int>(), new List <ClickableDelegate>());
            formVisualElements.ProductionPanel.Controls.Add(ProductionMainForm);
            updatebleForms.Add(ProductionMainForm);
            ProductionMainForm.Show();

            //  CustomerMainForm = new OrdersMainForm(MainController.GetCustomerOrdersDataTable(), formVisualElements.CustomerOrderPanel.Width, formVisualElements.CustomerOrderPanel.Height);
            CustomerMainForm = new GeneralDataGridForm(MainController.GetCustomerOrdersDataTable, formVisualElements.CustomerOrderPanel.Width, formVisualElements.CustomerOrderPanel.Height, new List <int>(), new List <ClickableDelegate>());
            formVisualElements.CustomerOrderPanel.Controls.Add(CustomerMainForm);
            updatebleForms.Add(CustomerMainForm);
            CustomerMainForm.Show();

            // SupplierMainForm = new OrdersMainForm(MainController.GetSupplierOrdersDataTable(), formVisualElements.SupplierOrderPanel.Width, formVisualElements.SupplierOrderPanel.Height);
            SupplierMainForm = new GeneralDataGridForm(MainController.GetSupplierOrdersDataTable, formVisualElements.SupplierOrderPanel.Width, formVisualElements.SupplierOrderPanel.Height, new List <int>(), new List <ClickableDelegate>());
            formVisualElements.SupplierOrderPanel.Controls.Add(SupplierMainForm);
            updatebleForms.Add(SupplierMainForm);
            SupplierMainForm.Show();
        }
Пример #2
0
 private void OrdersForm_Load_1(object sender, EventArgs e)
 {
     dataGridForm.Left = 0;
     dataGridForm.Top  = 0;
     dataGridForm.Show();
     OrdersPanel.Controls.Add(dataGridForm);
 }