Inheritance: DocViewItem
示例#1
0
 public ViewItem(DocView view, Catalog catalog)
 {
     banner = new BannerItem (view, catalog);
     ns_label = new LabelItem (view, "Namespaces:");
     namespaces = new NSItem [catalog.ChildCount];
     for (int i = 0; i < catalog.ChildCount; i++)
         namespaces [i] = new NSItem (view, catalog [i] as NamespaceNode);
 }
示例#2
0
 public ViewItem(DocView view, NamespaceNode ns)
 {
     this.view = view;
     banner = new BannerItem (view, ns);
     summary = new KitchenSinkItem (view, ns.Docs.Summary);
     remarks = new RemarksItem (view, ns.Docs.Remarks);
     Dictionary<string, List<ITableSummary>> groups = CreateGroupHash ();
     for (int i = 0; i < ns.ChildCount; i++) {
         TypeNode t = ns [i] as TypeNode;
         groups [t.Kind].Add (t);
     }
     if (groups["Class"].Count > 0)
         tables.Add (new SummaryTableItem (view, "Classes", "Class", groups["Class"]));
     if (groups["Structure"].Count > 0)
         tables.Add (new SummaryTableItem (view, "Structures", "Structure", groups["Structure"]));
     if (groups["Interface"].Count > 0)
         tables.Add (new SummaryTableItem (view, "Interfaces", "Interface", groups["Interface"]));
     if (groups["Delegate"].Count > 0)
         tables.Add (new SummaryTableItem (view, "Delegates", "Delegate", groups["Delegate"]));
     if (groups["Enumeration"].Count > 0)
         tables.Add (new SummaryTableItem (view, "Enumerations", "Enumeration", groups["Enumeration"]));
 }