/// <summary> /// Dispose the notification form. /// </summary> /// <param name="disposing"></param> protected override void Dispose(bool disposing) { if (!disposed) { if (disposing && frmPopup != null) { frmPopup.Dispose(); } disposed = true; } base.Dispose(disposing); }
/// <summary> /// Dispose the notification form. /// </summary> /// <param name="disposing"></param> protected override void Dispose(bool disposing) { if (!disposed) { if (isAppearing) { markedForDisposed = true; return; } if (disposing) { frmPopup?.Dispose(); tmrAnimation.Tick -= tmAnimation_Tick; tmrWait.Tick -= tmWait_Tick; tmrAnimation.Dispose(); tmrWait.Dispose(); } disposed = true; } base.Dispose(disposing); }