private EclassUtils.SearchJobData InitJobData()
        {
            var args = new EclassUtils.SearchJobData(eclassFullPath);

            args.searchInClasses    = this.SearchInClasses.IsChecked == true;
            args.searchInDatatypes  = this.SearchInDatatypes.IsChecked == true;
            args.searchInProperties = this.SearchInProperties.IsChecked == true;
            args.searchInUnits      = this.SearchInUnits.IsChecked == true;

            return(args);
        }
Exemplo n.º 2
0
        private EclassUtils.SearchJobData InitJobData()
        {
            var args = new EclassUtils.SearchJobData();

            args.searchInClasses    = this.SearchInClasses.IsChecked == true;
            args.searchInDatatypes  = this.SearchInDatatypes.IsChecked == true;
            args.searchInProperties = this.SearchInProperties.IsChecked == true;
            args.searchInUnits      = this.SearchInUnits.IsChecked == true;

            args.eclassFiles.Clear();
            foreach (var fn in System.IO.Directory.GetFiles(eclassFullPath, "*.xml"))
            {
                var dft = EclassUtils.TryGetDataFileType(fn);
                args.eclassFiles.Add(new EclassUtils.FileItem(fn, dft));
            }

            return(args);
        }