Пример #1
0
 /// <include file='doc\CodeWindowManager.uex' path='docs/doc[@for="TypeAndMemberDropdownBars.Done"]/*' />
 public void Done()   //TODO: use IDisposable pattern
 {
     if (this.imageList != null)
     {
         imageList.Dispose();
         imageList = null;
     }
 }
Пример #2
0
 /// <include file='doc\CodeWindowManager.uex' path='docs/doc[@for="TypeAndMemberDropdownBars.Done"]/*' />
 public void Done()
 {
     if (this.imageList != null)
     {
         imageList.Dispose();
         imageList = null;
     }
 }
Пример #3
0
        /// <summary>
        /// Closes the ImageHandler object freeing its resources.
        /// </summary>
        public void Close()
        {
            if (null != iconHandles)
            {
                foreach (IntPtr hnd in iconHandles)
                {
                    if (hnd != IntPtr.Zero)
                    {
                        NativeMethods.DestroyIcon(hnd);
                    }
                }
                iconHandles = null;
            }

            if (null != imageList)
            {
                imageList.Dispose();
                imageList = null;
            }
        }