private void hacerPedido()
        {

            Order or = new Order();

            or.ProductID = int.Parse(pro.ProductID);
            or.Quantity = Convert.ToInt32(Cant.Text);
            or.Date = DateTime.Today;

            ListaPedido.Add(or);

            //Order or = new Order();
            //or.ProductID = int.Parse(pro.ProductID);
            //or.Quantity = Convert.ToInt32(Cant.Text);
            //or.Date = DateTime.Today;
            //bool sw = await OrdersServices.TryCreateOrder(or);
            //if (sw)
            //{
            //    MessageBox.Show("Se ha aƱadido a la orden");
            //}
            //else
            //{
            //    MessageBox.Show("Se ha producido un error");
            //}
        }
 public static async Task<bool> TryCreateOrder(Order newOrder)
 {
     return true;
 }