private void WebLink_Clicked(object sender, RoutedEventArgs e) { if (WindowsUtility.ShellExecute(this, "http://www.menees.com")) { FinishLink(sender, e); } e.Handled = true; }
private void UpdateLink_Clicked(object sender, RoutedEventArgs e) { if (this.updateLink.Tag is Release latest && WindowsUtility.ShellExecute(this, latest.HtmlUri.ToString())) { FinishLink(sender, e); } e.Handled = true; }
private void EmailLink_Clicked(object sender, RoutedEventArgs e) { // UriBuilder always adds a '/' after the email address, which shows up in the opened // mail message's To field. So we'll manually build a mailto-compatible Uri. string link = string.Format("mailto:[email protected]?subject={0} {1}", this.productName.Text, this.version.Text); if (WindowsUtility.ShellExecute(this, link)) { FinishLink(sender, e); } e.Handled = true; }