public void Execute() { BaseConstants.SetExportPath(AppDataPath); ReDefine(); for (int i = 0; i < FilmPaths.Count; i++) { var path = FilmPaths[i]; var isRecongnized = SamplePaths.Any(x => x.SameText(path)); var exportAndIncludeSource = i != 0; var filmHandler = new FilmInDirHandler(exportAndIncludeSource, isRecongnized); filmHandler.RecusiveSearch(path); filmHandler.ExportJson(); } var categoryAdaptor = new CatalogAdaptor(AppDataPath); var classificationHandler = new ClassifyDistributorHandler(); classificationHandler.ClassifyAndExportDefines(categoryAdaptor.DistributorCats); var currentClassification = BaseConstants.LoadInfo <ClassificationDefine>(BaseConstants.ClassificationDefinePath); var phraseHandler = new PhraseHandler(); phraseHandler.ClassifyAndExportDefines(categoryAdaptor.FilmInfos, currentClassification); }
public FmMain() { InitializeComponent(); var exportPath = ConfigurationManager.AppSettings["ExportPath"]; Adaptor = new CatalogAdaptor(exportPath); }
public FmDistributorSearcher() { InitializeComponent(); txtCategory.Focus(); var exportPath = ConfigurationManager.AppSettings["ExportPath"]; Adaptor = new CatalogAdaptor(exportPath); }