private async void loadSunInfo_Click(object sender, RoutedEventArgs e) { var sunInfo = await SunProcessor.LoadSunInformation(); sunriseText.Text = $"Sunrise is at { sunInfo.Sunrise }"; sunsetText.Text = $"Sunset is at { sunInfo.Sunset }"; }
private async void loadSunInfo_Click(object sender, RoutedEventArgs e) { var sunInfo = await SunProcessor.LoadSunInformation(); sunriseText.Text = $"Sunrise is at {sunInfo.Sunrise.ToLocalTime().ToShortTimeString()}"; sunsetText.Text = $"Sunset is at {sunInfo.Sunset.ToLocalTime().ToShortTimeString()}"; }
private async void loadSunInfo_Click(object sender, RoutedEventArgs e) { var sunData = await SunProcessor.LoadSunInformation(); sunriseText.Text = $"Today's sunrise time in Strasbourg is: {sunData.Sunrise.ToLocalTime().ToShortTimeString()}"; sunsetText.Text = $"Today's sunset time in Strasbourg is: {sunData.Sunset.ToLocalTime().ToShortTimeString()}"; }