public NewOrder(BindingNavigator bindingNavigatorOrders1) { bindingNavigatorOrders = bindingNavigatorOrders1; InitializeComponent(); NewOrderController.fillCustomerIdCombobox(customerId_F_combobox); }
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); }
private void addOrder_button_Click(object sender, EventArgs e) { NewOrderController.addNewOrder(deliveryLocation_textbox, paymentMethodCombobox, orderDate_picker, customerId_F_combobox, bindingNavigatorOrders, this); }