Beispiel #1
0
 public void changeIsCompletedState()
 {
     IsCompleted = !IsCompleted;
     isCompletedChanged?.Invoke(this, EventArgs.Empty);
     CompletedTasks = IsCompleted ? CompletedTasks + 1 : CompletedTasks - 1;
     CompletedTasksCountChanged?.Invoke(this, EventArgs.Empty);
 }
Beispiel #2
0
 public static void AcknowledgeIsCompletedStateChange(bool completedState)
 {
     CompletedTasks = completedState ? CompletedTasks + 1 : CompletedTasks - 1;
     CompletedTasksCountChanged?.Invoke(null, EventArgs.Empty);
 }
Beispiel #3
0
 public static void UpdateCompletedTasks(int score)
 {
     CompletedTasks = score;
     CompletedTasksCountChanged?.Invoke(true, EventArgs.Empty);
 }
Beispiel #4
0
 public static void addToTaskCompletedScore()
 {
     CompletedTasks += 1;
     CompletedTasksCountChanged?.Invoke(true, EventArgs.Empty);
 }