Beispiel #1
0
 /// <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");
     }
 }
Beispiel #2
0
        /// <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");
        }
Beispiel #3
0
 /// <summary>
 /// Resets the tasks order.
 /// </summary>
 /// <param name="order">The type of ordering to use.</param>
 public void ResetTasksOrder(TasksOrdering order) => VoteCounter.ResetTasksOrder(order);