Esempio n. 1
0
 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();
 }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 public static void Setup(TestContext _context)
 {
     repo = new MoneyInfoRepository();
     repo.Clear();
 }
Esempio n. 4
0
 public GoalsModal(MoneyInfoRepository repo)
 {
     this.repo = repo;
     InitializeComponent();
     //GoalsList.DataContext = repo.Context().Goals.Local;
 }