private void AddDefinitionButton_Click(object sender, RoutedEventArgs e) { try { var classConcept = _SQLClient .FindClassConcept(_SelectedClassificationId, _SelectedConceptId); int classificationConceptId = classConcept.Field <int>("Id"); _SQLClient.InsertDefinition( classificationConceptId, int.Parse(SourceComboBox.Text.Split('.')[0]), DefinitionTextBox.Text, int.Parse(PageTextBox.Text) ); Frames.Classifications.Instance.SelectClassificationConcepts(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Ошибка"); } }