|
@@ -75,9 +75,9 @@ namespace ROGOZ.Pages
|
|
|
|
|
|
//сортировка по исполнителю
|
|
|
if (CmbExecutorSort.SelectedIndex == 0)
|
|
|
- tasks = tasks.OrderBy(p => p.Executor).ToList();
|
|
|
+ tasks = tasks.OrderBy(p => p.ExecutorID).ToList();
|
|
|
else
|
|
|
- tasks = tasks.OrderByDescending(p => p.Executor).ToList();
|
|
|
+ tasks = tasks.OrderByDescending(p => p.ExecutorID).ToList();
|
|
|
|
|
|
//сортировка по поиску
|
|
|
tasks = tasks.Where(p => p.Title.ToLower().Contains(TBoxSearch.Text.ToLower())).ToList();
|
|
@@ -94,5 +94,12 @@ namespace ROGOZ.Pages
|
|
|
{
|
|
|
UpdateTasks();
|
|
|
}
|
|
|
+
|
|
|
+ private void ClearFilters_Click(object sender, RoutedEventArgs e)
|
|
|
+ {
|
|
|
+ CmbExecutorSort.SelectedIndex = 0;
|
|
|
+ CmbStatusSort.SelectedIndex = 0;
|
|
|
+ TBoxSearch.Clear();
|
|
|
+ }
|
|
|
}
|
|
|
}
|