public String GetSectionType(DoxSectionType type) { switch (type) { case DoxSectionType.Class: return "document"; case DoxSectionType.Field: return "field"; case DoxSectionType.Property: return "property"; case DoxSectionType.Method: return "method"; case DoxSectionType.Database: return "database"; case DoxSectionType.Table: return "table"; case DoxSectionType.View: return "view"; case DoxSectionType.StoredProcedure: return "stored-procedure"; case DoxSectionType.Column: return "column"; default: return "text"; } }
private void AddSearchItem(DoxSectionType type, string name, string desc) { SearchItems.Add(new DoxSearchItem { SectionType = type, SectionName = name, SectionDescription = desc }); }