public EditGoals(Goals goals, MoneyInfoRepository repo) { InitializeComponent(); goalInput = goals; this.repo = repo; goalDate.SelectedDate = goals.GoalDate; goalTitle.Text = goals.GoalTitle; goalType.SelectedValue = goals.GoalType; goalCost.Text = goals.GoalCost.ToString(); }
public ShowGoals(Goals goals, MoneyInfoRepository repo) { InitializeComponent(); goalInput = goals; this.repo = repo; goalDate.Text = goals.GoalDate.ToString(); goalTitle.Text = goals.GoalTitle; goalType.Text = goals.GoalType; goalCost.Text = goals.GoalCost.ToString(); timeTill.Text = timeTillDeadline().Value.Days.ToString(); saveTarget.Text = SavingsPerDay().ToString(); }
public static void Setup(TestContext _context) { repo = new MoneyInfoRepository(); repo.Clear(); }
public GoalsModal(MoneyInfoRepository repo) { this.repo = repo; InitializeComponent(); //GoalsList.DataContext = repo.Context().Goals.Local; }