示例#1
0
 public ItemDetailViewModel(String barcode)
 {
     Item             = DataStore.GetItemAsyncBarcode(barcode).ConfigureAwait(false).GetAwaiter().GetResult();
     Title            = Item?.Name;
     MotivationalText = MotivationalTextsRepository.GetRandomTextForWasteType(Item?.WasteType);
 }
示例#2
0
 public ItemDetailViewModel(Item item = null)
 {
     Title            = item?.Name;
     Item             = item;
     MotivationalText = MotivationalTextsRepository.GetRandomTextForWasteType(item?.WasteType);
 }