예제 #1
0
 public WorkScheduleService()
 {
     _db           = new Repository();
     _syncService  = new SyncService(AppContext.Log);
     _query        = new DapperContext();
     _printService = new DriverPrinterService();
 }
예제 #2
0
 public SaleOrderService()
 {
     _log          = AppContext.Log;
     _db           = new Repository();
     _printService = new DriverPrinterService();
     _syncService  = new SyncService(AppContext.Log);
     _dbContext    = new DapperContext();
 }
예제 #3
0
        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();
            }
        }