public WheatCostCalculator(Wheat wheat)
 {
     this.wheat = wheat;
 }
Ejemplo n.º 2
0
 private void DisplayWheat(Wheat wheat)
 {
     this.Title = String.Format("Пшеница на сумму {0:C}", wheat.Cost);
     this.Subtitle = String.Format("Пшеница: {0}, {1}",
             wheat.Grade.Name, wheat.Hardness.Name); ;
     this.Description = String.Format("Выполнено {0}/{1}, испорченность: {2:P2}",
         wheat.PlannedNumber, wheat.RealNumber, wheat.Staleness);
     this.Image = CreateImageFromAssets("wheat.png");
     this.Items = new ObservableCollection<DisplayItem>();
 }