public static string GetCaption(this ReportFilter filter) { string result = string.Empty; if (!LazyFilterCaptions.Value.TryGetValue(filter, out result)) { result = filter.ToString(); } return(string.IsNullOrEmpty(result) ? filter.ToString() : result); }
private DataRow createRowForFilter(DataTable sourceTable, ReportFilter filter) { DataRow result = sourceTable.NewRow(); result["Description"] = filter.ToString(); result["Filter Type"] = filter.FilterType; return(result); }