예제 #1
0
 public AddMoneyPage(GoalDTO goal)
 {
     gop = new GoalProcessor();
     InitializeComponent();
     moneyReceived.Text = 0.ToString();
     goalToAdd          = goal;
 }
 public EntityListController(AccountProcessor accountProcessor, TransactionProcessor transactionProcessor, DatafeedProcessor datafeedProcessor, GoalProcessor goalProcessor)
 {
     _accountProcessor     = accountProcessor;
     _transactionProcessor = transactionProcessor;
     _datafeedProcessor    = datafeedProcessor;
     _goalProcessor        = goalProcessor;
 }
예제 #3
0
 public GoalsPage()
 {
     InitializeComponent();
     gop   = new GoalProcessor();
     goals = new ObservableCollection <GoalDTO>();
     GoalsList.ItemsSource = goals;
     GoalData();
 }
예제 #4
0
 public AddGoalPage()
 {
     gop = new GoalProcessor();
     InitializeComponent();
     cancelButton.Clicked += delegate(object sender, EventArgs args)
     {
         Application.Current.MainPage.Navigation.PopModalAsync();
     };
 }
예제 #5
0
        public ViewGoalPage(GoalDTO data)
        {
            InitializeComponent();
            goalId              = data.Goalid;
            gop                 = new GoalProcessor();
            goalName.Text       = data.Goalname;
            allocatedMoney.Text = data.Moneyallocated.ToString();
            requiredMoney.Text  = data.Moneyrequired.ToString();
            moneyLeft.Text      = (data.Moneyrequired - data.Moneyallocated).ToString();
            finishDay.Text      = data.Goalexpectedtime.ToString();
            DateTime expected = data.Goalexpectedtime ?? default(DateTime);

            daysLeft.Text            = (expected - DateTime.Now).Days.ToString();
            progressBar.Progress     = (1 / data.Moneyrequired * data.Moneyallocated);
            completeButton.IsEnabled = data.Moneyallocated == data.Moneyrequired;
        }
예제 #6
0
 public GoalController(GoalProcessor goalProcessor)
 {
     _goalProcessor = goalProcessor;
 }