Ejemplo n.º 1
0
        public async void AddGoal(string goalName, string goalDescription)
        {
            var goal = new Goal
            {
                Name = goalName,
                Description = goalDescription,
                Dates = new ObservableCollection<DateTime>()
            };

            this._goals.Add(goal);
            await SaveGoalDataAsync();

        }
Ejemplo n.º 2
0
 public async void CompletedGoalToday(Goal goalInstance)
 {
     var index = this._goals.IndexOf(goalInstance);
     this._goals[index].AddDate();
     await this.SaveGoalDataAsync();
 }