예제 #1
0
 public WorldWeather()
 {
     InitializeComponent();
     OpenWeatherMapService = new OpenWeatherMapService();
     DataContext           = this;
     OpenWeatherMapService.GetWeatherAsync();
 }
예제 #2
0
 public WorldWeather()
 {
     InitializeComponent();
     OpenWeatherMapService = ViewModelSource.Create(() => new OpenWeatherMapService());
     DataContext           = this;
     OpenWeatherMapService.GetWeatherAsync();
 }
예제 #3
0
 void lbUnitType_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e)
 {
     OpenWeatherMapService.SetCurrentTemperatureType((TemperatureScale)e.NewValue);
 }