public void Search(ProjectDetail projectDetail, CodeSearchOptions options) { Options = options; SearchDataTable(projectDetail.FormCodeDataTable); SearchDataTable(projectDetail.LibCodeDataTable); SearchDataTable(projectDetail.MenuCodeDataTable); SearchDataTable(projectDetail.ReportCodeDataTable); }
private void FillCodeSearchOptions() { CodeSearchOptions searchOptions = new CodeSearchOptions(); searchOptions.SearchString = SearchText.Text; searchOptions.FileDetails = new List <SearchFileDetail>(); foreach (DataRow dataRow in ProjectDetail.FileNamesDataTable.Rows) { SearchFileDetail searchFileDetail = new SearchFileDetail(); searchFileDetail.FileName = System.IO.Path.GetFileName(dataRow["name"].ConvertToString()); searchFileDetail.FilePath = dataRow["name"].ConvertToString(); searchOptions.FileDetails.Add(searchFileDetail); } searchOptions.FileDetails = searchOptions.FileDetails.OrderBy(s => s.FileName).ToList(); CodeSearchOptions = searchOptions; SearchOptionsExpander.DataContext = CodeSearchOptions; }