예제 #1
0
        public void OnResult(ZXing.Result result)
        {
            var barcode = result.Text;

            Barcodes.Add(barcode);
            Mvx.Resolve <IToast>().Show(string.Format("Bar code = {0} added to list",
                                                      barcode));
        }
        private void OpenBarcodeCreationDialog()
        {
            var addBarcodeDialog = dialogService.ShowDialog <AddBarcodeDialog, AddBarcodeDialogViewModel>(Window);

            if (addBarcodeDialog.DialogResult == true)
            {
                Barcodes.Add(addBarcodeDialog.ResultInfo.RawBarcode);
            }
        }
예제 #3
0
 public WorkspaceViewModel(WorkspaceViewModel workspaceViewModel)
     : this()
 {
     Name = workspaceViewModel.Name;
     foreach (var barcode in workspaceViewModel.Barcodes)
     {
         Barcodes.Add(new BarcodeViewModel(barcode));
     }
 }
예제 #4
0
 public void AddBarcode(BarcodeType type, string message, string encoding)
 {
     Barcodes.Add(new Barcode(type, message, encoding));
 }
예제 #5
0
 public void AddBarcode(BarcodeType type, string message, string encoding, string alternateText)
 {
     Barcodes.Add(new Barcode(type, message, encoding, alternateText));
 }