public List <DateTime> GetPossibleDates() { Dictionary <string, DateTime> dates = new Dictionary <string, DateTime>(); BackEndData.GetAllCyclingData().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 radioFietsTraining_Checked(object sender, RoutedEventArgs e) { dgOverview.ItemsSource = BackEndData.GetAllCyclingData(); SortDataGrid(dgOverview, 2); }