public override void InitServices() { _customerService = new CustomerService() as ICustomerService; _driverService = new DriverService() as IDriverService; _daybookService = new DaybookService() as IDaybookService; addDaybookControl = new ctrlAddDaybook(); }
public ctrlAddDaybook() { InitializeComponent(); _customerService = new CustomerService(); _driverService = new DriverService(); _journeyService = new JourneyService(); _dayBookService = new DaybookService(); }
public ctrlFormInvoices() { _customerService = new CustomerService() as ICustomerService; _daybookService = new DaybookService() as IDaybookService; _invoiceService = new InvoiceService() as IInvoiceService; InitializeComponent(); OnLoad(); }
public ctrlFormWorkload() { _customerService = new CustomerService() as ICustomerService; _daybookService = new DaybookService() as IDaybookService; _invoiceService = new InvoiceService() as IInvoiceService; _driverService = new DriverService() as IDriverService; currentDialog = new frmAddDaybook(); InitializeComponent(); OnLoad(); }
public frmDaybook() { DaybookService daybookService = new DaybookService(); service = (IDaybookService)daybookService; InitializeComponent(); //InitializeMenuItems(); currentDialog = new frmAddDaybook(); currentDialog.OnSaveForm += new Dialogbase.OnSaveFormEvent(this.GetData); }