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