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; }
public GoalsPage() { InitializeComponent(); gop = new GoalProcessor(); goals = new ObservableCollection <GoalDTO>(); GoalsList.ItemsSource = goals; GoalData(); }
public AddGoalPage() { gop = new GoalProcessor(); InitializeComponent(); cancelButton.Clicked += delegate(object sender, EventArgs args) { Application.Current.MainPage.Navigation.PopModalAsync(); }; }
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; }
public GoalController(GoalProcessor goalProcessor) { _goalProcessor = goalProcessor; }