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