Inheritance: DocViewItem
示例#1
0
 public NSItem(DocView view, NamespaceNode ns)
 {
     link = new LinkItem (view, ns.Caption, ns);
     summ = new KitchenSinkItem (view, ns.Docs.Summary);
 }
示例#2
0
 public RemarksItem(DocView view, XmlElement elem)
 {
     label = new LabelItem (view, "Remarks:");
     contents = new KitchenSinkItem (view, elem);
 }
示例#3
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"]));
 }