Beispiel #1
0
        public void Remove(DownloadListItem item)
        {
            lock (this.Items)
            {
                this.Items.Remove(item);
                this.Panel.Controls.Remove(item);
            }

            this.UpdateControlsBoundsPreferred();
        }
Beispiel #2
0
        public void Remove(DownloadTask task)
        {
            DownloadListItem item = null;

            lock (this.Items)
            {
                item = this.Items.Find(i => i.Task.Equals(task));
            }

            this.Remove(item);
        }
Beispiel #3
0
        public void Add(DownloadTask task)
        {
            var item = new DownloadListItem(task);

            item.RemoveRequest += this.OnItemRemoveRequest;

            lock (this.Items)
            {
                this.Items.Add(item);
                this.Panel.Controls.Add(item);
            }

            this.AligenmentItems();
        }