public StatisticsPage() { this.InitializeComponent(); foreach (String fuelTypeString in FuelTypeHelpers.GetList().Select(ft => ft.Name())) { this.averageFuelTypePicker.Items.Add(fuelTypeString); } this.averageDowPicker.Items.Add("Alle Tage"); foreach (String dowString in DayOfWeekHelpers.GetList().Select(dow => dow.GermanName())) { this.averageDowPicker.Items.Add(dowString); } this.BindingContext = new StatisticsVM(); }
public static IQueryable <Sales> GetSalesByDayOfWeek(this IQueryable <Sales> source, int dayOfWeek) { return(source.Where(x => x.EntryDate.DayOfWeek == DayOfWeekHelpers.ConvertIntToDayOfWeek(dayOfWeek))); }