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); } }
public WorkspaceViewModel(WorkspaceViewModel workspaceViewModel) : this() { Name = workspaceViewModel.Name; foreach (var barcode in workspaceViewModel.Barcodes) { Barcodes.Add(new BarcodeViewModel(barcode)); } }
public void AddBarcode(BarcodeType type, string message, string encoding) { Barcodes.Add(new Barcode(type, message, encoding)); }
public void AddBarcode(BarcodeType type, string message, string encoding, string alternateText) { Barcodes.Add(new Barcode(type, message, encoding, alternateText)); }