public void UpdateAll() { TreeIter iter; if (Torrents.GetIterFirst(out iter)) { do { Update(iter); } while (Torrents.IterNext(ref iter)); } }
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)); } }