|
@@ -99,24 +99,6 @@ namespace ROGOZ.Pages
|
|
|
tasks = tasks.Where(p => p.Title.ToLower().Contains(TBoxSearch.Text.ToLower())).ToList(); // работает
|
|
|
|
|
|
DGTasks.ItemsSource = tasks;
|
|
|
-
|
|
|
- //сортировка по исполнителю
|
|
|
- //tasks = tasks.Where(p=>p.ExecutorID.Equals(CmbExecutorSort.Text)).ToList() ;
|
|
|
- //if (CmbExecutorSort.SelectedIndex == 0)
|
|
|
- // tasks = tasks.OrderBy(p => p.ExecutorID).ToList();
|
|
|
- //else
|
|
|
- // tasks = tasks.OrderByDescending(p => p.ExecutorID).ToList();
|
|
|
-
|
|
|
- //if (CmbExecutorSort.SelectedIndex != -1)
|
|
|
- // tasks = tasks.Where(p => p.ID.Equals(CmbExecutorSort.Text.ToLower())).ToList();
|
|
|
-
|
|
|
- //tasks = tasks.Where(p => p.ID.ToString() == CmbExecutorSort.Text).ToList();
|
|
|
-
|
|
|
-
|
|
|
- //сортировка по поиску
|
|
|
- //tasks = tasks.Where(p => p.Title.ToLower().Contains(TBoxSearch.Text.ToLower())).ToList(); // работает
|
|
|
-
|
|
|
- //DGTasks.ItemsSource = tasks;
|
|
|
}
|
|
|
|
|
|
|