private void AddProductInOperation_Click(object sender, RoutedEventArgs e)
 {
     using (var db = new SkladModel())
     {
         if (db.count(Convert.ToInt32(TB_Quantity.Text)))
         {
             if (db.qua(Convert.ToInt32(TB_Quantity.Text), Convert.ToInt32(CB_Product.SelectedValue)) && CB_Oper.SelectedItem.ToString() == "Продажа")
             {
                 productId.Add(Convert.ToInt32(CB_Product.SelectedValue));
                 quantityProduct.Add(Convert.ToInt32(TB_Quantity.Text));
             }
             else if (CB_Oper.SelectedItem.ToString() == "Покупка")
             {
                 productId.Add(Convert.ToInt32(CB_Product.SelectedValue));
                 quantityProduct.Add(Convert.ToInt32(TB_Quantity.Text));
             }
             else
             {
                 MessageBox.Show("На складе недостаточно товара.");
             }
         }
         else
         {
             MessageBox.Show("Количество меньше или равно 0");
         }
     }
     MessageBox.Show("Товар добавлен");
 }