예제 #1
0
        public void Search(ProjectDetail projectDetail, CodeSearchOptions options)
        {
            Options = options;

            SearchDataTable(projectDetail.FormCodeDataTable);
            SearchDataTable(projectDetail.LibCodeDataTable);
            SearchDataTable(projectDetail.MenuCodeDataTable);
            SearchDataTable(projectDetail.ReportCodeDataTable);
        }
예제 #2
0
        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;
        }