Esempio n. 1
0
 public GoalItemState(Goal goal)
 {
     Goal = goal;
     Id   = goal.Id;
     ProgressPerMinute = goal.ProgressPerMinute;
     Image             = goal.ImageMedium;
     Name               = goal.Name;
     End                = goal.End;
     Amount             = goal.Amount;
     GoalAmountRequired = new GoalAmountRequired(goal.ProgressPerMinute, goal.Start);
 }
Esempio n. 2
0
 private void SetProgress(GoalAmountRequired goalAmountRequired)
 {
     progressText.Text = goalAmountRequired.RequiredAmount().ToString("C");
 }