Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1. Uri uriResult;
  2.             if (Uri.TryCreate(url, UriKind.Absolute, out uriResult) && (uriResult.Scheme == Uri.UriSchemeHttp || uriResult.Scheme == Uri.UriSchemeHttps) && webviews_manager.ProductWebviewIsValid)
  3.             {
  4.                 print("Url is valid. Showing product webview");
  5.                 webview.Show();
  6.             }
  7.             else
  8.             {
  9.                 MobileNativeMessage msg = new MobileNativeMessage("Errore 77", "Pagina richiesta non disponibile");
  10.                 throw new InvalidProductURLException(url);
  11.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement