private void ShowBrowser(string addressName) { var site = _siteFactory.GetSite(addressName); if (site == null) { return; } var addressWithoutPrefix = site.Address; if (String.IsNullOrEmpty(addressWithoutPrefix)) { return; } MyListBox.Visibility = Visibility.Collapsed; MyBrowser.Visibility = Visibility.Visible; var address = HelperFunctions.AddAddressPrefix(addressWithoutPrefix); MyBrowser.Navigate(address); HelperFunctions.TrySetSuppressScriptErrors(MyBrowser, true); }
public string GetAddress(string order) { return(HelperFunctions.AddAddressPrefix(sites.First(x => x.Order == order).Address)); }