public WorkScheduleService() { _db = new Repository(); _syncService = new SyncService(AppContext.Log); _query = new DapperContext(); _printService = new DriverPrinterService(); }
public SaleOrderService() { _log = AppContext.Log; _db = new Repository(); _printService = new DriverPrinterService(); _syncService = new SyncService(AppContext.Log); _dbContext = new DapperContext(); }
private async void Button_Clicked_1(object sender, EventArgs e) { IPosPrinter printer = DependencyService.Get <IPosPrinter>(); if (printer == null) { await DisplayAlert("Error", "Printer is NULL", "OK"); } else { await printer.Print(); } }