private void DisplayCheese(Cheese cheese) { this.Title = String.Format("Сыр на сумму {0:C}", cheese.Cost); this.Subtitle = String.Format("Сыр: {0}, {1}, {2}", cheese.Kind.Name, cheese.Fatness.Value, cheese.Cover.Name); ; this.Description = String.Format("Выполнено {0}/{1}, испорченность: {2:P2}", cheese.PlannedNumber, cheese.RealNumber, cheese.Staleness); this.Image = CreateImageFromAssets("cheese.png"); this.Items = new ObservableCollection<DisplayItem>(); }
public CheeseCostCalculator(Cheese cheese) { this.cheese = cheese; }