Example #1
0
        public void UpdateAll()
        {
            TreeIter iter;

            if (Torrents.GetIterFirst(out iter))
            {
                do
                {
                    Update(iter);
                } while (Torrents.IterNext(ref iter));
            }
        }
Example #2
0
        void RemoveDownload(Download download)
        {
            TreeIter iter;

            if (Torrents.GetIterFirst(out iter))
            {
                do
                {
                    if (download != Torrents.GetValue(iter, 0))
                    {
                        continue;
                    }

                    download.PriorityChanged -= HandlePriorityChanged;
                    download.StateChanged    -= HandleStateChanged;
                    Torrents.Remove(ref iter);
                    Selection.UnselectAll();
                    break;
                } while (Torrents.IterNext(ref iter));
            }
        }