public CogProject(SpanFactory<ShapeNode> spanFactory) { _segmenter = new Segmenter(spanFactory); _meanings = new KeyedBulkObservableList<string, Meaning>(meaning => meaning.Gloss); _meanings.CollectionChanged += MeaningsChanged; _varieties = new KeyedBulkObservableList<string, Variety>(variety => variety.Name); _varieties.CollectionChanged += VarietiesChanged; _varietyPairs = new VarietyPairCollection(); _wordAligners = new ObservableDictionary<string, IWordAligner>(); _cognateIdentifiers = new ObservableDictionary<string, ICognateIdentifier>(); _projectProcessors = new ObservableDictionary<string, IProcessor<CogProject>>(); _varietyProcessors = new ObservableDictionary<string, IProcessor<Variety>>(); _varietyPairProcessors = new ObservableDictionary<string, IProcessor<VarietyPair>>(); }
public CogProject(SpanFactory<ShapeNode> spanFactory) { _segmenter = new Segmenter(spanFactory); _meanings = new MeaningCollection(); _meanings.CollectionChanged += MeaningsChanged; _varieties = new VarietyCollection(); _varieties.CollectionChanged += VarietiesChanged; _varietyPairs = new VarietyPairCollection(); _cognacyDecisions = new CognacyDecisionCollection(); _wordAligners = new ObservableDictionary<string, IWordAligner>(); _cognateIdentifiers = new ObservableDictionary<string, ICognateIdentifier>(); _projectProcessors = new ObservableDictionary<string, IProcessor<CogProject>>(); _varietyProcessors = new ObservableDictionary<string, IProcessor<Variety>>(); _varietyPairProcessors = new ObservableDictionary<string, IProcessor<VarietyPair>>(); }