private void DeleteDefinition_Click(object sender, RoutedEventArgs e) { if (DefinitionsDataGrid.IsSingleRowSelected()) { Definition selectedDefinition = _definitions[DefinitionsDataGrid.SelectedIndex]; _SQLClient.DeleteDefinition(selectedDefinition.ClassConceptId, selectedDefinition.SourceId); SelectConceptDefinitions(selectedDefinition.ClassConceptId); } }