public void SelectFullMatch() { if (FoundEntities.Count > 1 && FoundEntities.Any(x => x.Name == SearchString)) { var f = FoundEntities.First(x => x.Name == SearchString); FoundEntities.Clear(); FoundEntities.Add(f); } }
public void SelectFullMatch() { if (_updateTimer.Enabled) { _updateTimer.Stop(); UpdateFoundEntities(); } if (FoundEntities.Count > 1 && FoundEntities.Any(x => x.Name == SearchString)) { var f = FoundEntities.First(x => x.Name == SearchString); FoundEntities.Clear(); FoundEntities.Add(f); } if (SelectEntityCommand.CanExecute("")) { SelectEntityCommand.Execute(""); } }