public void CreatePT()
 {
     if (ProductQueries.isRepeatedPtCode(NewProduct.Id))
     {
         System.Windows.MessageBox.Show("Este Codigo de PT ya existe.");
     }
     else
     {
         ProductQueries.CreateInventarioProductoTerminado(NewProduct);
         NewProduct.Existencia = 0;
         NewProduct.Entrada    = 0;
         NewProduct.Salida     = 0;
         System.Windows.MessageBox.Show("Producto creado en el inventario.");
         InventarioPt.Add(NewProduct);
         Limpiar();
     }
 }