/// <summary>
        /// Shows "Select weather web link" popup page, lets the user choose a weather icon
        /// description and returns it.
        /// </summary>
        /// <param name="group">weather icon group to filter by; may be null to show all groups</param>
        /// <returns>selected weather icon description, or null when user canceled the popup dialog</returns>
        public static async Task <WeatherIconDescription> ShowAsync(string group)
        {
            var popupPage = new SelectWeatherIconPopupPage(group);

            await popupPage.Navigation.PushPopupAsync(popupPage);

            return(await popupPage.tcs.Task);
        }
예제 #2
0
        /// <summary>
        /// Lets the userselect a different weather icon description from given group and opens
        /// the new web link in the current web view.
        /// </summary>
        /// <param name="group">group to filter weather icon descriptions by</param>
        /// <returns>task to wait on</returns>
        private async Task SelectAndOpenWeatherPageAsync(string group)
        {
            var description = await SelectWeatherIconPopupPage.ShowAsync(group);

            if (description != null)
            {
                this.OpenWebLink(description);
            }
        }