public virtual TabPage[] GetTabPages() { ArrayList alPages = new ArrayList(); alPages.Add(TabPages.GetPropertyPage(TabPages.PROPERTIES, Model.SPObject)); if (this.BrowserUrl.Length > 0) { alPages.Add(TabPages.GetBrowserPage("Browser", this.BrowserUrl)); } if (Model.SPObject != null) { PropertyInfo propInfo = Model.SPObjectType.GetProperty("SchemaXml", typeof(string)); if (propInfo != null) { alPages.Add(TabPages.GetXmlPage("Schema Xml", propInfo.GetValue(Model.SPObject, null) as string)); } } if (Model.SPObject is SPList) { var list = Model.SPObject as SPList; alPages.Add(TabPages.GetDataGridViewPage("GridView", list.Items.GetDataTable())); } return((TabPage[])alPages.ToArray(typeof(TabPage))); }