private void EditProduct_Click(object sender, RoutedEventArgs e)
 {
     using (var DB = new SkladModel())
     {
         MessageBox.Show(DB.EditProduct(Convert.ToInt32(DGR_Product.SelectedValue), TB_TitleP.Text, Convert.ToDecimal(TB_Price.Text)
                                        , Convert.ToInt32(CB_Product_Type.SelectedValue), Convert.ToInt32(CB_Unit_Of_Measurement.SelectedValue)
                                        , Convert.ToInt32(TB_QuantityP.Text)));
     }
     UpdateTable();
     UpdateComboBox();
 }