コード例 #1
0
ファイル: BitMonster.cs プロジェクト: LeXa777/PlayGround
 void Updated(TorrentEvent torrentEvent)
 {
    if (this.InvokeRequired)
    {
       this.Invoke(new Action(UpdateSelectedTorrent));
    }
    else
    {
       UpdateSelectedTorrent();
    }
    Serialize();
 }
コード例 #2
0
ファイル: BitMonster.cs プロジェクト: LeXa777/PlayGround
 void torrent_Downloaded(TorrentEvent tEvent)
 {
    MessageBox.Show(string.Format("Torrent {0} Downloaded!", tEvent.Torrent.TorrentFilename));
 }
コード例 #3
0
ファイル: TorrentList.cs プロジェクト: LeXa777/PlayGround
 void torrent_Updated(TorrentEvent peerEvent)
 {
    if (this.InvokeRequired)
    {
       this.Invoke(new Action(() => Refresh(peerEvent.Torrent)));
    }
    else
    {
       Refresh(peerEvent.Torrent);
    }
 }