private void InitializeSales() { errorProvider = new ErrorProvider(this); InitializeComponent(); customerController = new CustomerController(); saleController = new SaleController(); productController = new ProductController(); subProductController = new SubProductController(); subProductForTransactionController = new SubProductForTransactionController(); }
public Products() { errorProvider = new ErrorProvider(this); InitializeComponent(); productController = new ProductController(); subProductController = new SubProductController(); partController = new PartController(); partForSubProductController = new PartForSubProductController(); dgvProducts.DataSource = productController.GetAll(); cbParts.DataSource = partController.GetAll(); }
private void InitializeQuotes() { errorProvider = new ErrorProvider(this); InitializeComponent(); customerController = new CustomerController(); quoteController = new QuoteController(); productController = new ProductController(); subProductController = new SubProductController(); subProductForTransactionController = new SubProductForTransactionController(); saleController = new SaleController(); txtValidTo.Text = DateTime.Now.AddDays(30).ToShortDateString(); }
private void pageInput_SelectOrder_Load(object sender, EventArgs e) { this.bttInput.Visible = false; SubProductController controllerSubProduct = new SubProductController(); listSubProcess = controllerSubProduct.SearchSubProduct(productMainCode); foreach (SubProductProperty item in listSubProcess) { this.cmbSubProduct.Items.Add(item.PRODUCT_SUB_NAME); } //Declaration class OrderProperty & Conditionproperty _frmMain._order = new OrderProperty(); _frmMain._order.CONDITION = new ConditionProperty(); }