private static void OrderByIndex(PriceOfferViewModel model, int index, uint count = 1) { model.CurrentOffer.Value = model.Offers.Value[index]; model.CurrentOffer.Value.OrderCount = count; model.OfferUpdated(); model.OfferCommitted(); }
public void ShowPrice() { if (!CanShowPrice) { return; } var offerViewModel = new PriceOfferViewModel(Order.Value.Price.Id, false, CurrentLine.Value == null ? null : ((OrderLine)CurrentLine).OfferId); Shell.Navigate(offerViewModel); }
public void Setup() { price = new Price("test1"); model = new PriceOfferViewModel(price.Id, false); model.Price.Value = price; }