//=============================================================================== // Goal Book. // Copyright © 2009 Mark Brownsword. //=============================================================================== #region Using Statements using System; using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media.Imaging; using GoalBook.Shell.Services; #endregion namespace GoalBook.Shell.Views { /// <summary> /// Interaction logic for AboutDialog.xaml /// </summary> public partial class AboutView : UserControl { /// <summary> /// Constructor. /// </summary> public AboutView() { InitializeComponent(); //Set Product. this.labelProduct.Content = AssemblyInfoProperties.ProductName; //Set Version. this.labelVersion.Content = string.Format("{0} {1}", this.labelVersion.Content, AssemblyInfoProperties.Version); // Set Image this.imageAbout.Source = new BitmapImage(new Uri(GoalBook.Infrastructure.Constants.MenuConstants.JOURNAL_48_IMAGE_URI, UriKind.Absolute)); //Set Copyright. this.labelCopyright.Content = AssemblyInfoProperties.Copyright; } /// <summary> /// Handle Hyperlink_Click event. /// </summary> private void Hyperlink_Click(object sender, RoutedEventArgs e) { if (e.Source is Hyperlink) { Process p = new Process(); p.StartInfo.FileName = (e.Source as Hyperlink).NavigateUri.ToString(); p.StartInfo.UseShellExecute = true; p.StartInfo.RedirectStandardOutput = false; p.StartInfo.Arguments = string.Empty; p.Start(); } } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)