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

            if (SmallIcon != null)
            {
                SmallIcon.Dispose();
            }
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 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);
                }
            }
Exemplo n.º 5
0
 /// <summary>
 /// Dekonstruktor, welcher die geladenen Icon Resourcen zu einer Datei wieder freigibt.
 /// </summary>
 public void Dispose()
 {
     LargeIcon.Dispose();
     SmallIcon.Dispose();
 }