Inheritance: PropertyChangedBase
        void AddRecentItem(RecentCollection collection) {
            RemoveRecentItem(collection);
            InsertRecentItem(collection);

            if (Items.Count > 10)
                Items.RemoveAt(10);
        }
 public RecentJumpTask(RecentCollection collection) {
     Id = collection.Id;
     Title = collection.Name;
     Description = "Launch: " + collection.Name;
     CustomCategory = "Recent";
     ApplicationPath = collection.GetLaunchUrl();
     IconResourcePath = Common.Paths.EntryLocation.ToString();
 }
        void AddRecentItem(RecentCollection collection) {
            _jumpList.JumpItems.RemoveAll<JumpItem, RecentJumpTask>(x => x.Id == collection.Id);
            _jumpList.JumpItems.Insert(0, new RecentJumpTask(collection));

            if (_jumpList.JumpItems.Count > 10)
                _jumpList.JumpItems.RemoveAt(10);

            UiHelper.TryOnUiThread(_jumpList.Apply);
        }
 public void AddRecent(Collection collection) {
     var recentModSet = new RecentCollection(collection);
     RecentCollections.AddLocked(recentModSet);
     recentModSet.Collection = collection;
     collection.RefreshLastJoinedOn();
     SaveSettings();
 }
 void RemoveRecentItem(RecentCollection collection) {
     Items.RemoveAll<IMenuItem, RecentMenuItem>(x => x.Id == collection.Id);
 }
 void InsertRecentItem(RecentCollection collection) {
     Items.Insert(0, new RecentMenuItem(collection));
 }
 public RecentMenuItem(RecentCollection collection) {
     Id = collection.Id;
     Name = collection.Name;
     Action = () => Process.Start(collection.GetLaunchUrl());
 }