private void InitializeSales() { errorProvider = new ErrorProvider(this); InitializeComponent(); customerController = new CustomerController(); saleController = new SaleController(); productController = new ProductController(); subProductController = new SubProductController(); subProductForTransactionController = new SubProductForTransactionController(); }
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(); }