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 }";
        }
示例#2
0
        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()}";
        }
示例#3
0
        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()}";
        }