private void FindProperty() { var property = _SQLClient.FindProperty(_PropertyId); PropertyNameTextBox.Text = (string)property["Name"]; PropertyMeasureTextBox.Text = (string)property["Measure"]; ConceptsRootComboBox.SelectedIndex = ConceptsRootComboBox .Items.OfType <string>().ToList() .FindIndex(item => int.Parse(item.Split('.').First()) == (int)property["IdConcept"]); }