コード例 #1
0
 public void onTemperatureresult(WeatherArgs args)
 {
     if (args != null && args._weatherInfo != null && args._weatherInfo?.TemperatureInfo != null)
     {
         result.Text = "The weather is " + args._weatherInfo?.Weather[0]?.Description + " and the Temperature is " + args._weatherInfo?.TemperatureInfo?.Temp + " Kelvin";
     }
     else
     {
         Snackbar.Make(result, "Sorry there is an error.Please try again", Snackbar.LengthLong)
         .SetAction("Action", (Android.Views.View.IOnClickListener)null).Show();
     }
     progress.Visibility = ViewStates.Invisible;
     mainViewModel.onWeatherEventHandler -= onTemperatureresult;
 }
コード例 #2
0
 public void WeatherChanged(object sender, WeatherArgs info)
 => Console.WriteLine("CurrentConditions");
コード例 #3
0
 internal override void ExecuteChanges(object sender, WeatherArgs e)
 {
     Console.WriteLine($"CurrentConditionsReport: {e.Temperature}");
 }
コード例 #4
0
 internal override void ExecuteChanges(object sender, WeatherArgs e)
 {
     Console.WriteLine($"StatisticReport: {e.Humidity}");
 }
コード例 #5
0
 public void WeatherChanged(object sender, WeatherArgs info)
 => Console.WriteLine("Statistic");
コード例 #6
0
 internal override void ExecuteChanges(object sender, WeatherArgs e)
 {
     Console.WriteLine($"ForeCastReport: {e.Pressure}");
 }
コード例 #7
0
 public void WeatherHasChanged(MeteorologicCentrum m, WeatherArgs warg)
 {
     weather = warg.weather;
 }
コード例 #8
0
 public void WeatherChanged(object sender, WeatherArgs info)
 => Console.WriteLine("ForeCast");
コード例 #9
0
 protected virtual void OnWeatherChange(object sender, WeatherArgs eventArgs)
 {
     WeatherChanged?.Invoke(sender, eventArgs);
 }