public void Select(FoundNotepadItemViewModel item) { if (item != null) { if (item.Notepad != null) { SelectItemCallback?.Invoke(item.Notepad); } } }
public FoundNotepadItemViewModel CreateItem(NotepadItemViewModel notepad) { FoundNotepadItemViewModel item = new FoundNotepadItemViewModel() { Notepad = notepad }; SetupCallbacks(item); return(item); }
public void SetupCallbacks(FoundNotepadItemViewModel item) { item.SelectNotepadCallback = Select; }
public void RemoveItem(FoundNotepadItemViewModel doc) { FoundItems.Remove(doc); }
public void AddItem(FoundNotepadItemViewModel doc) { FoundItems.Add(doc); }