Example #1
0
        public AboutBox()
        {
            InitializeComponent();
            this.Text = String.Format(this.Text, AssemblyTitle);
            this.labelProductName.Text   = AssemblyProduct;
            this.labelVersion.Text       = String.Format(this.labelVersion.Text, AssemblyVersion);
            this.labelCopyright.Text     = AssemblyCopyright;
            this.textBoxDescription.Text = AssemblyDescription;
            this.textBoxLicense.Text     = AssemblyLicense;

            this.sourceCodeLink.Text         = AssemblySourceLink.ToString();
            this.sourceCodeLink.LinkClicked += new LinkLabelLinkClickedEventHandler(LinkClicked);
        }
Example #2
0
        /// <summary>
        /// Opens the source code link when clicked
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            ProcessStartInfo processInfo = new ProcessStartInfo(AssemblySourceLink.ToString());

            Process.Start(processInfo);
        }