uTorrentNotifier.WebUIAPI.Timer_Tick C# (CSharp) 메소드

Timer_Tick() 공개 메소드

public Timer_Tick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void
        void Timer_Tick(object sender, EventArgs e)
        {
            this.Torrents.Current = this.ListTorrents();

            if (this.Torrents.Last != null)
            {
                List<TorrentFile> completed = this.FindDone();
                List<TorrentFile> added = this.FindNew();

                if ((completed.Count > 0) && (this.DownloadComplete != null))
                    this.DownloadComplete(completed);

                if ((added.Count > 0) && (this.TorrentAdded != null))
                    this.TorrentAdded(added);
            }
        }