Example #1
0
 protected override void CreateChildItems()
 {
     foreach (ClassViewProjectData.GroupItem item in this._group.Items)
     {
         string name = item.Name;
         Type type = Type.GetType(item.TypeName, false);
         if (type != null)
         {
             TypeProjectItem item2 = new TypeProjectItem(name, type);
             item2.EnsureTypeInformation();
             base.AddChildItem(item2);
         }
     }
     base.CreateChildItems();
 }
Example #2
0
 public TypeProjectItem AddType(Type type)
 {
     TypeProjectItem item = new TypeProjectItem(type);
     this._typeItems.Add(item);
     return item;
 }
Example #3
0
 protected override void CreateChildItems()
 {
     int num;
     BindingFlags @public = BindingFlags.Public;
     if (((ClassViewProject) this.Project).ProjectData.ShowNonPublicMembers)
     {
         @public |= BindingFlags.NonPublic;
     }
     System.Type[] nestedTypes = this._type.GetNestedTypes(@public);
     if ((nestedTypes != null) && ((num = nestedTypes.Length) != 0))
     {
         TypeProjectItem[] array = new TypeProjectItem[nestedTypes.Length];
         for (int i = 0; i < num; i++)
         {
             array[i] = new TypeProjectItem(nestedTypes[i]);
             array[i].EnsureTypeInformation();
         }
         Array.Sort(array, GetComparer(((ClassViewProject) this.Project).ProjectData.SortMode));
         for (int j = 0; j < num; j++)
         {
             base.AddChildItem(array[j]);
         }
     }
     base.CreateChildItems();
 }
 public ClassViewListViewItem(TypeProjectItem item, string extraData)
     : base(new string[] { item.Caption, item.Type.Namespace, extraData }, item.IconIndex)
 {
     this._item = item;
 }