示例#1
0
        public void Apply(TranscendenceTask task)
        {
            if (task.IsPending)
            {
                PendingPoints = PendingPoints - task.Points;
            }
            else
            {
                PendingPoints = PendingPoints + task.Points;
            }

            task.IsPending = !task.IsPending;
            dataManager.AddOrSaveTranscendenceTaskAsync(task);
        }
示例#2
0
 public Task AddOrSaveTranscendenceTaskAsync(TranscendenceTask item)
 {
     return(database.SaveItemAsync(item));
 }