/// <summary> /// if paths is null, search from metadata folder. /// </summary> public Jp2KrTranslationVM(RegexDotConfiguration dot, string[]?paths = null) { dotConfig = dot; translations = paths?.SelectMany(p => WalkForSources(p))?.ToList(); Progress = new LabelProgressVM(); Faults = new ObservableCollection <ILabelProgressVM>(); Ongoings = new ObservableCollection <ILabelProgressVM>(); }
public TranslationUnit(RegexDotConfiguration dot, ManagedPath workspace) { DotConfig = dot; Workspace = workspace; }