예제 #1
0
        public void Apply(KinderTask task)
        {
            if (task.IsPending)
            {
                PendingPoints = PendingPoints - task.Points;
            }
            else
            {
                PendingPoints = PendingPoints + task.Points;
            }

            task.IsPending = !task.IsPending;
            dataManager.AddOrSaveKinderTaskAsync(task);
        }
예제 #2
0
		public Task AddOrSaveKinderTaskAsync (KinderTask item)
		{
			return database.SaveItemAsync (item);
		}
예제 #3
0
 public Task AddOrSaveKinderTaskAsync(KinderTask item)
 {
     return(database.SaveItemAsync(item));
 }
예제 #4
0
		public void Apply (KinderTask task)
		{
			if (task.IsPending)
				PendingPoints = PendingPoints - task.Points;
			else
				PendingPoints = PendingPoints + task.Points;

			task.IsPending = !task.IsPending;
			dataManager.AddOrSaveKinderTaskAsync (task);
		}