/// <summary>
        /// Initializes a new instance of the <see cref="XamarinPowerShop.OrderViewModel"/> class.
        /// </summary>
        /// <param name="tshirt">Tshirt.</param>
        public OrderViewModel(TShirt tshirt)
        {
            Current = tshirt;

            OrderCommand = new Command(x => {
                var now = DateTime.Now;

                var order = new Order
                {
                    IsMen = IsMen,
                    OrderDate = now,
                    ProductName = Current.Name,
                    ProductReference = Current.Reference,
                    Size = Sizes[SizeIndex],
                    HourSlots = now.Hour,
                    TimeSlots = new DateTime(now.Year, now.Month, now.Day)
                };

                var isOrdered = PowerBIClient.Do<bool>(api => api.Insert(api.GetDatasetId(DatasetName), order));

                if(isOrdered)
                    OnOrdered(order);
                else
                    OnFailed();
            });
        }
 /// <summary>
 /// Raises the ordered event.
 /// </summary>
 /// <param name="order">Order.</param>
 void OnOrdered(Order order)
 {
     var tmp = Ordered;
     if(tmp != null)
         tmp(this, order);
 }