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); }
private void SetProgress(GoalAmountRequired goalAmountRequired) { progressText.Text = goalAmountRequired.RequiredAmount().ToString("C"); }