예제 #1
0
파일: MRUList.cs 프로젝트: LionFree/Cush
 public void Remove(MRUEntry entry)
 {
     var de = new DictionaryEntry(entry.FullPath, entry);
     if (_mrus.Contains(de))
     {
         _mrus.Remove(de);
     }
 }
예제 #2
0
 public MRUEntryElement(MRUEntry entry)
     : this(entry.FullPath, entry.Pinned, entry.Tag)
 {
 }
예제 #3
0
파일: MRUList.cs 프로젝트: LionFree/Cush
 public void Add(MRUEntry entry)
 {
     _mrus.Add(new DictionaryEntry(entry.FullPath, entry));
 }
예제 #4
0
 public static void AddItem(this IList<MRUEntry> collection, MRUEntry item)
 {
     Trace.WriteLine("Adding item...");
     collection.Add(item);
 }
예제 #5
0
        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();
        }
예제 #6
0
        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);
        }
예제 #7
0
 private void OnOpenACopy(MRUEntry entry)
 {
     RaiseEvent(new SelectionChangedEventArgs(OpenACopyEvent, new List<MRUEntry>(), new List<MRUEntry> {entry}));
     OpenACopyCommand?.Execute(entry);
 }