/// <summary> /// Gets header text for given table /// </summary> /// <param name="table">Table to get the header for</param> /// <returns>HTML representing header text</returns> private string GetTableHeaderText(DataTable table) { string tableName = table.TableName; string defaultString = null; // ### Special cases if (!string.IsNullOrEmpty(ObjectType)) { if (CustomTableItemProvider.IsCustomTableItemObjectType(ObjectType)) { defaultString = "CustomTableData"; } else if (ObjectType == TreeNode.OBJECT_TYPE) { defaultString = "DocumentData"; } else { defaultString = tableName; } } return("<h4 class=\"listing-title\">" + ResHelper.GetAPIString("ObjectType." + tableName, Thread.CurrentThread.CurrentUICulture.ToString(), GetString("ObjectType." + defaultString)) + "</h4>"); }