Esempio n. 1
0
        public NewOrder(BindingNavigator bindingNavigatorOrders1)
        {
            bindingNavigatorOrders = bindingNavigatorOrders1;

            InitializeComponent();
            NewOrderController.fillCustomerIdCombobox(customerId_F_combobox);
        }
Esempio n. 2
0
        private void App_Load(object sender, EventArgs e)
        {
            db.BindCustomerData(CustomerLabels, commentsRichTextBoxGlobal, bindingNavigator_Customer);
            db.BindProductsData(ProductLabels, bindingNavigator_Products);
            db.BindOrderData(OrderLabels, bindingNavigator_Orders);
            db.BindOrdersProductsData(OrdersProductsLabels, bindingNavigator_OrdersProducts);

            NewOrderController.fillCustomerIdCombobox(customerIds_combobox);

            AppController.syncCustomersTab(AppDAO.getBindSourceCustomer(), CustomerLabels, pictureBox_customer,
                                           deleteCustomer_button, updateCustomer_button);

            AppController.syncProductsTab(AppDAO.getBindSourceProducts(), ProductLabels,
                                          deleteProduct_button, updateProduct_button);

            AppController.syncOrdersTab(AppDAO.getBindSourceOrders(), OrderLabels,
                                        deleteOrder_button, updateOrder_button);

            AppController.syncOrdersProductsTab(AppDAO.getBindSourceOrdersProducts(), OrdersProductsLabels,
                                                deleteRelationship_button, updateRelationship_button);
        }