Пример #1
0
 public void Dispose()
 {
     Stop();
     tas.UnsubscribeEvents(this);
     spring.UnsubscribeEvents(this);
     springPaths.UnsubscribeEvents(this);
     Program.main.Downloader.UnsubscribeEvents(this);
     Program.main.paths.UnsubscribeEvents(this);
     tas.RequestDisconnect();
     pollTimer.Dispose();
     if (timer != null)
     {
         timer.Dispose();
     }
     pollTimer          = null;
     linkSpringieClient = null;
 }