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