void Updated(TorrentEvent torrentEvent) { if (this.InvokeRequired) { this.Invoke(new Action(UpdateSelectedTorrent)); } else { UpdateSelectedTorrent(); } Serialize(); }
void torrent_Downloaded(TorrentEvent tEvent) { MessageBox.Show(string.Format("Torrent {0} Downloaded!", tEvent.Torrent.TorrentFilename)); }
void torrent_Updated(TorrentEvent peerEvent) { if (this.InvokeRequired) { this.Invoke(new Action(() => Refresh(peerEvent.Torrent))); } else { Refresh(peerEvent.Torrent); } }