public void Dispose()
 {
     SmallIcon?.Dispose();
     LargeIcon?.Dispose();
     MessageInfo?.Dispose();
     Actions?.ToList().ForEach(c => c.Dispose());
 }
Example #2
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        ///
        /// </summary>
        /// ------------------------------------------------------------------------------------
        public void Dispose()
        {
            if (LargeIcon != null)
            {
                LargeIcon.Dispose();
            }

            if (SmallIcon != null)
            {
                SmallIcon.Dispose();
            }
        }
Example #3
0
        /// <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();
            }
        }
Example #4
0
            /// <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();
 }