private void PinUnpin() { if (!_projectService.Project.CognacyDecisions.Remove(_wordPair)) { _projectService.Project.CognacyDecisions.Add(_wordPair, !_wordPair.PredictedCognacy); } Messenger.Default.Send(new DomainModelChangedMessage(false)); _analysisService.Compare(_wordPair.VarietyPair); }
private void PerformComparison() { if (_varietyPairState == VarietyPairState.NotSelected || _selectedVarietyPair != null) { return; } _busyService.ShowBusyIndicatorUntilFinishDrawing(); CogProject project = _projectService.Project; var pair = new VarietyPair(_selectedVariety1.DomainVariety, _selectedVariety2.DomainVariety); project.VarietyPairs.Add(pair); _analysisService.Compare(pair); SelectedVarietyPair = _varietyPairFactory(pair, true); VarietyPairState = VarietyPairState.SelectedAndCompared; }
private void PerformComparison() { CogProject project = _projectService.Project; VarietyPair pair; if (_selectedVarietyPair == null) { pair = new VarietyPair(_selectedVariety1.DomainVariety, _selectedVariety2.DomainVariety); project.VarietyPairs.Add(pair); } else { pair = _selectedVarietyPair.DomainVarietyPair; } _analysisService.Compare(pair); if (_selectedVarietyPair == null) { SelectedVarietyPair = _varietyPairFactory(pair, true); } VarietyPairState = VarietyPairState.SelectedAndCompared; }