public void Dispose() { SmallIcon?.Dispose(); LargeIcon?.Dispose(); MessageInfo?.Dispose(); Actions?.ToList().ForEach(c => c.Dispose()); }
/// ------------------------------------------------------------------------------------ /// <summary> /// /// </summary> /// ------------------------------------------------------------------------------------ public void Dispose() { if (LargeIcon != null) { LargeIcon.Dispose(); } if (SmallIcon != null) { SmallIcon.Dispose(); } }
/// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary> public void Dispose() { CanExecute = null; ClickCallback = null; if (_ownsLargeImage) { LargeIcon.Dispose(); } if (_ownsSmallImage) { SmallIcon.Dispose(); } }
/// <summary> /// Performs application-defined tasks associated with /// freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { if (!disposed) { if (SmallIcon != null) { SmallIcon.Dispose(); SmallIcon = null; } if (LargeIcon != null) { LargeIcon.Dispose(); LargeIcon = null; } disposed = true; GC.SuppressFinalize(this); } }
/// <summary> /// Dekonstruktor, welcher die geladenen Icon Resourcen zu einer Datei wieder freigibt. /// </summary> public void Dispose() { LargeIcon.Dispose(); SmallIcon.Dispose(); }