Exemplo n.º 1
0
        void AddRecentItem(RecentCollection collection) {
            RemoveRecentItem(collection);
            InsertRecentItem(collection);

            if (Items.Count > 10)
                Items.RemoveAt(10);
        }
Exemplo n.º 2
0
 public RecentJumpTask(RecentCollection collection) {
     Id = collection.Id;
     Title = collection.Name;
     Description = "Launch: " + collection.Name;
     CustomCategory = "Recent";
     ApplicationPath = collection.GetLaunchUrl();
     IconResourcePath = Common.Paths.EntryLocation.ToString();
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 void RemoveRecentItem(RecentCollection collection) {
     Items.RemoveAll<IMenuItem, RecentMenuItem>(x => x.Id == collection.Id);
 }
Exemplo n.º 5
0
 void InsertRecentItem(RecentCollection collection) {
     Items.Insert(0, new RecentMenuItem(collection));
 }
Exemplo n.º 6
0
 public RecentMenuItem(RecentCollection collection) {
     Id = collection.Id;
     Name = collection.Name;
     Action = () => Process.Start(collection.GetLaunchUrl());
 }
Exemplo n.º 7
0
 public void AddRecent(Collection collection) {
     var recentModSet = new RecentCollection(collection);
     RecentCollections.Add(recentModSet);
     recentModSet.Collection = collection;
     collection.RefreshLastJoinedOn();
     SaveSettings();
 }