public ReprintReceiptViewModel(IMvxLog log, IMvxNavigationService navigationService, IFcsService fcsService, IAppSettings appSettings) { this.log = log; this.navigationService = navigationService; this.fcsService = fcsService; this.appSettings = appSettings; }
public ReprintReceiptDataViewModel(IMvxNavigationService navigationService, IMvxLog log, Printer printer, IFcsService fcsService) { this.navigationService = navigationService; this.log = log; this.printer = printer; this.fcsService = fcsService; }
public GradesViewModel(IFcsService fcsService, IMvxLog log, IMvxNavigationService navigationService, IAppSettings appSettings, IMessageBoxService messageBoxService) { this.fcsService = fcsService; this.log = log; this.navigationService = navigationService; this.appSettings = appSettings; this.messageBoxService = messageBoxService; }
public RefundStatusViewModel(IMvxNavigationService navigationService, IMvxLog log, PosManager posManager, IFcsService fcsService, IAppSettings appSettings, IMessageBoxService messageBoxService) { this.navigationService = navigationService; this.log = log; this.posManager = posManager; this.fcsService = fcsService; this.appSettings = appSettings; this.messageBoxService = messageBoxService; }
public PrepayViewModel( IFcsService fcsService, IMvxLog log, IMvxNavigationService navigationService, IDBAccess dbService, PosManager posManager, IMessageBoxService messageBoxService) { this.fcsService = fcsService; this.log = log; this.navigationService = navigationService; this.dbService = dbService; this.posManager = posManager; this.messageBoxService = messageBoxService; }
public CardTenderViewModel(IMvxNavigationService navigationService, IMvxLog log, ITpsService tpsService, IFcsService fcsService, IAppSettings appSettings, PosManager posManager, IReceiptGenerator receiptGenerator) { this.navigationService = navigationService; this.log = log; this.tpsService = tpsService; this.fcsService = fcsService; this.posManager = posManager; this.appSettings = appSettings; this.receiptGenerator = receiptGenerator; }
public PosManager(IAppSettings appSettings, IFcsService fcsService, IMvxLog log, IDBAccess dbAccess) { this.appSettings = appSettings; this.fcsService = fcsService; this.log = log; this.dbAccess = dbAccess; oldSaleFileLocation = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); oldSaleFileLocation = Path.Combine(oldSaleFileLocation, "OldSales.xml"); PosCompany = this.dbAccess.GetCompany(); CanCloseApp = true; basketQueue = new Queue <BasketRequest>(); }
private void ConfigureFcsServer() { log.Debug("App: Configuring fcs..."); fcsService = Mvx.IoCProvider.Resolve <IFcsService>(); fcsService.ConnectionStatusChanged += OnFcsConnectionStatusChanged; fcsService.FcsReceivedConfigurationEvent += OnFCSConfigReceived; fcsService.FcsReceivedBasketEvent += OnBasketReceived; fcstimer = new System.Timers.Timer(2000) { AutoReset = false }; fcstimer.Elapsed += OnCheckFcsConnection; log.Info("App: Attempting to establish connection to Fcs"); fcsService.ConnectAsync(appSettings.FcsIpAddress, appSettings.FcsPort); if (!fcsService.IsConnected) { fcstimer.Enabled = true; } }