private void RemoveUnit_Click(object sender, RoutedEventArgs e) { using (var DB = new SkladModel()) { MessageBox.Show(DB.RemoveUnit_Of_Measurement(Convert.ToInt32(DGR_Unit.SelectedValue))); } UpdateTable(); UpdateComboBox(); }