/// <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; } }
/// <include file='doc\CodeWindowManager.uex' path='docs/doc[@for="TypeAndMemberDropdownBars.Done"]/*' /> public void Done() { if (this.imageList != null) { imageList.Dispose(); imageList = null; } }
/// <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; } }