private async void ImportListAsync() { if ((URLUtil.IsValidUrl(URLImport) == false) || (URLImport == null)) { await _pageDialog.DisplayAlertAsync("ATENÇÃO", "Verifique a inserção da URL !", "OK"); } else { ImportAPIAsync(URLImport); } }
/// <summary> /// Determines whether [is valid URL] [the specified URL string]. /// </summary> /// <param name="urlString">The URL string.</param> /// <returns><c>true</c> if [is valid URL] [the specified URL string]; otherwise, <c>false</c>.</returns> private bool IsValidUrl(string urlString) { return(URLUtil.IsValidUrl(urlString)); }