Ejemplo n.º 1
0
 public SettingsPage()
 {
     this.InitializeComponent();
     // Violate MVVM due to missing binding property
     foreach (String value in FuelTypeHelpers.GetList().Select(fuelType => fuelType.Name()))
     {
         this.fuelTypePicker.Items.Add(value);
     }
     this.BindingContext = new SettingsVM();
 }
Ejemplo n.º 2
0
 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();
 }