public void SetCurrentItem(TypeDocumentItem item) { Page descriptionPage = null; if (item == null) { descriptionPage = this._currentDocument.DescriptionPage; } else { descriptionPage = item.DescriptionPage; } if (descriptionPage == null) { ClassViewProjectData projectData = ((ClassViewProject) this._currentDocument.ProjectItem.Project).ProjectData; PageBuilder builder = null; if (item == null) { builder = new TypePageBuilder(projectData, this._currentDocument); descriptionPage = (ClassViewPage) builder.CreatePage(typeof(ClassViewPage)); this._currentDocument.DescriptionPage = descriptionPage; } else { builder = new MemberPageBuilder(projectData, this._currentDocument, item); descriptionPage = (ClassViewPage) builder.CreatePage(typeof(MemberPage)); item.DescriptionPage = descriptionPage; } } base.Page = descriptionPage; }
public TypeViewTreeNode(TypeDocumentItem item) : base(item.Text) { this._item = item; base.ImageIndex = base.SelectedImageIndex = this.GetImageIndex(); if (item.IsObsolete) { base.ForeColor = SystemColors.ControlDark; } }
internal void SetCurrentItem(TypeDocumentItem item) { this._currentItem = item; }
public MemberPageBuilder(ClassViewProjectData projectData, TypeDocument document, TypeDocumentItem item) : base(projectData, document) { this._item = item; }
public void SetItem(TypeDocumentItem item) { this._item = item; }