Exemplo n.º 1
0
 /// <summary>
 /// Releases all allocated message processors, services and other resources.
 /// </summary>
 /// <param name="disposing"><c>True</c> if called from <see cref="Dispose"/>, <c>false</c> if called from the finalizer.</param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         CleanupMessageProcessors();
         _keyloggerService?.Dispose();
         _userActivityDetection?.Dispose();
         ApplicationMutex.Dispose();
     }
 }
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         CleanupMessageProcessors();
         _keyloggerService?.Dispose();
         _userActivityDetection?.Dispose();
         ApplicationMutex?.Dispose();
         _connectClient?.Dispose();
         _notifyIcon.Visible = false;
         _notifyIcon.Dispose();
     }
     base.Dispose(disposing);
 }