public List <DateTime> GetPossibleDates() { Dictionary <string, DateTime> dates = new Dictionary <string, DateTime>(); BackEndData.GetAllRunningData().ForEach(x => dates.TryAdd(x.col2.ToString("MM-yyyy"), x.col2)); List <DateTime> sortedList = dates.Values.ToList(); sortedList.Sort(); sortedList.Reverse(); return(sortedList); }
private void radioLoopTraining_Checked(object sender, RoutedEventArgs e) { dgOverview.ItemsSource = BackEndData.GetAllRunningData(); SortDataGrid(dgOverview, 2); }