Ejemplo n.º 1
0
        public void FetchUnsent()
        {
            var scans = db.Query <DespatchBayExpressDataBase.ParcelScans>("SELECT * FROM ParcelScans WHERE Sent IS null");

            CurrentScans.Clear();
            foreach (var scan in scans)
            {
                BarcodeScan t = new BarcodeScan {
                    BarcodeText = scan.TrackingNumber
                };
                CurrentScans.Add(t);
            }
            barcodes = CurrentScans.ToArray();
        }
Ejemplo n.º 2
0
        public void FetchCollected()
        {
            var scans = db.Query <DespatchBayExpressDataBase.ParcelScans>("SELECT * FROM ParcelScans  where isCollected = 1");

            CurrentScans.Clear();
            foreach (var scan in scans)
            {
                BarcodeScan t = new BarcodeScan {
                    BarcodeText = scan.TrackingNumber
                };
                CurrentScans.Add(t);
            }
            barcodes = CurrentScans.ToArray();
        }