/// <summary> /// Resets the tasks order. /// </summary> /// <param name="order">The type of ordering to use.</param> public void ResetTasksOrder(TasksOrdering order) { if (order == TasksOrdering.Alphabetical) { TaskList.Sort(); OnPropertyChanged("Tasks"); } else if (order == TasksOrdering.AsTallied) { TaskList.Clear(); TaskList.AddRange(KnownTasks); OnPropertyChanged("Tasks"); } }
/// <summary> /// Resets the tasks order. /// </summary> /// <param name="order">The type of ordering to use.</param> public void ResetTasksOrder(TasksOrdering order) { if (order == TasksOrdering.Alphabetical) { TaskList.Sort(); } else if (order == TasksOrdering.AsTallied) { TaskList.Clear(); TaskList.AddRange(OrderedVoteTaskList.Concat(OrderedUserTaskList)); } OnPropertyChanged("Tasks"); }
/// <summary> /// Resets the tasks order. /// </summary> /// <param name="order">The type of ordering to use.</param> public void ResetTasksOrder(TasksOrdering order) => VoteCounter.ResetTasksOrder(order);