Esempio n. 1
0
        public void RemoveAt(int index)
        {
            if (this.HandleCreated)
            {
                this.JumpListControl.ClearAllUserTasks();
            }

            IJumpListItem old = this.Items[index];

            this.Items.RemoveAt(index);
            old.Release();

            if (this.HandleCreated)
            {
                foreach (IJumpListItem item in this.Items)
                {
                    this.JumpListControl.AddUserTasks(item.ToJumpListTask());
                }

                this.JumpListControl.KnownCategoryToDisplay = Microsoft.WindowsAPICodePack.Taskbar.JumpListKnownCategoryType.Neither;
                this.JumpListControl.Refresh();
            }
        }