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