private void ExecuteLoadItemsCommand() { if (IsBusy) { return; } IsBusy = true; try { using (var dict = _db.GetDocument(CoreApp.DocId)) { var arr = dict.GetArray(CoreApp.ArrKey); for (int i = 0; i < arr.Count; i++) { DictionaryObject d = arr.GetDictionary(i); _items[i].Name = d.GetString("key"); _items[i].Quantity = d.GetInt("value"); _items[i].ImageByteArray = d.GetBlob("image")?.Content; } } } catch (Exception ex) { Debug.WriteLine(ex); } finally { IsBusy = false; } }