public void Remove(MRUEntry entry) { var de = new DictionaryEntry(entry.FullPath, entry); if (_mrus.Contains(de)) { _mrus.Remove(de); } }
public MRUEntryElement(MRUEntry entry) : this(entry.FullPath, entry.Pinned, entry.Tag) { }
public void Add(MRUEntry entry) { _mrus.Add(new DictionaryEntry(entry.FullPath, entry)); }
public static void AddItem(this IList<MRUEntry> collection, MRUEntry item) { Trace.WriteLine("Adding item..."); collection.Add(item); }
private void PinClickAction(MRUEntry entry) { // Move it to the top of the list. MRUItemsSource.Move(MRUItemsSource.IndexOf(entry), 0); // Change the pin. entry.Pinned = !entry.Pinned; // Update the separator borders UpdateSeparators(); }
private void OnOpenRecentFile(MRUEntry entry) { // Move the item to the top of the list. MRUItemsSource.Move(MRUItemsSource.IndexOf(entry), 0); RaiseEvent(new SelectionChangedEventArgs(RecentFileSelectedEvent, new List<MRUEntry>(), new List<MRUEntry> { entry })); OpenRecentFileCommand?.Execute(entry); }
private void OnOpenACopy(MRUEntry entry) { RaiseEvent(new SelectionChangedEventArgs(OpenACopyEvent, new List<MRUEntry>(), new List<MRUEntry> {entry})); OpenACopyCommand?.Execute(entry); }