public AboutBox() { InitializeComponent(); this.Text = String.Format("About {0}", AssemblyTitle); this.labelProductName.Text = AssemblyProduct; this.labelVersion.Text = String.Format("Version {0} {1}", AssemblyVersion, AssemblyConfiguration); this.labelCopyright.Text = AssemblyCopyright.Replace("&", "&&"); this.labelCompanyName.Text = AssemblyCompany.Replace("&", "&&"); this.textBoxDescription.Text = Properties.Resources.Description; //AssemblyDescription; }
public About() { _utilities = new Utilities(); InitializeComponent(); var version = AssemblyVersion.Substring(0, AssemblyVersion.LastIndexOf(".")); this.Text = String.Format("About {0}", AssemblyTitle); this.ProductNameLabel.Text = AssemblyProduct; this.VersionLabel.Text = String.Format("Version {0}", version); this.CopyrightLabel.Text = AssemblyCopyright; this.CompanyNameLabel.Text = AssemblyCompany; this.DescriptionTextBox.Text = AssemblyDescription; if (AssemblyCompany.StartsWith("http")) { this.CompanyNameLabel.Cursor = Cursors.Hand; this.CompanyNameLabel.Font = new Font(CompanyNameLabel.Font.Name, CompanyNameLabel.Font.SizeInPoints, FontStyle.Underline); this.CompanyNameLabel.ForeColor = Color.Blue; } }