public ItemsViewModel(IInfoEntry head) : this() { Title = head.Name; this.Head = head; this.refreshLambda = head.LinkClick; this.FetchItemsAndReplace(null, head.LinkClick); }
public bool DeleteItem(IInfoEntry item) { try { this.dict.Remove(item.Id); return(true); } catch { return(false); } }
public bool UpdateItem(IInfoEntry item) { try { var entry = new T(); entry.FromEntry(item); this.dict[entry.Id] = entry; return(true); } catch { return(false); } }
public bool AddItem(IInfoEntry item) { try { var entry = new T(); entry.FromEntry(item); this.dict.Add(entry.Id, entry); return(true); } catch { return(false); } }
protected StoredBase(IInfoEntry entry) { this.Id = entry.Id; this.Name = entry.Name; this.Description = entry.Description; }
public void FromEntry(IInfoEntry entry) { this.Id = entry.Id; this.Name = entry.Name; this.Description = entry.Description; }
public ItemsPage(IInfoEntry head) : this(new ItemsViewModel(head)) { }
public ItemDetailViewModel(IInfoEntry item = null) { Title = item?.Name; Item = item; }
void Add(SearchPage sender, IInfoEntry item) { var _item = item as IInfoEntry; Items.Add(_item); }