private void frmDaybook_Load(object sender, EventArgs e) { DaybookService daybookService = new DaybookService(); //var service = (IDaybookService)daybookService; //var exports = service.GetDayBooks(2); //var imports = service.GetDayBooks(1); }
private void frmDaybook_Load(object sender, EventArgs e) { DaybookService daybookService = new DaybookService(); var service = (IDaybookService)daybookService; var exports = service.GetDayBooks(2); var imports = service.GetDayBooks(1); this.dsExports.DataSource = exports; }
public frmDaybook() { DaybookService daybookService = new DaybookService(); service = (IDaybookService)daybookService; InitializeComponent(); //InitializeMenuItems(); currentDialog = new frmAddDaybook(); currentDialog.OnSaveForm += new Dialogbase.OnSaveFormEvent(this.GetData); }