Esempio n. 1
0
 public void UnsubscribeDownload(OnDownloadStopped handler)
 {
     try
     {
         if (!OnChangeState.GetInvocationList().Contains(handler))
         {
             DownloadStopped -= handler;
         }
     }
     catch (NullReferenceException) { }
 }
Esempio n. 2
0
 public void UnsubscribeState(OnTorrentChangeState handler)
 {
     try
     {
         if (!OnChangeState.GetInvocationList().Contains(handler))
         {
             OnChangeState += handler;
         }
     }
     catch (NullReferenceException) { }
 }