Exemplo n.º 1
0
 public void Done(){ //TODO: use IDisposable pattern
   if (this.imageList != null){
     imageList.Dispose();
     imageList = null;
   }
 }
Exemplo n.º 2
0
 // IVsDropdownBarClient methods
 public virtual void GetComboAttributes(int combo, out uint entries, out uint entryType, out IntPtr iList){
   entries = 0;
   entryType = 0;
   if (combo == TypeAndMemberDropdownBars.DropClasses && this.dropDownTypes != null) 
     entries = (uint)this.dropDownTypes.Length;
   else if (this.dropDownMembers != null) 
     entries = (uint)this.dropDownMembers.Length;
   // we can "or" this with HasFontAttribute if we want to specify font attributes,
   // then VS calls GetEntryAttributes to get the font
   entryType = (uint)(DropDownItemType.HasText | DropDownItemType.HasImage);
   if (this.imageList == null)
     this.imageList = this.languageService.imageList.Clone();        
   iList = this.imageList.GetNativeImageList();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Builds an empty ImageHandler object.
 /// </summary>
 public ImageHandler()
 {
     this.imageList   = null;
     this.iconHandles = null;
 }