Exemple #1
0
        public AboutBox()
        {
            InitializeComponent();

            //  Initialize the AboutBox to display the product information from the assembly information.
            //  Change assembly information settings for your application through either:
            //  - Project->Properties->Application->Assembly Information
            //  - AssemblyInfo.cs
            this.Text = String.Format("About {0}", AssemblyTitle);
            this.labelProductName.Text = AssemblyProduct;
            this.labelVersion.Text     = String.Format("Version {0}", AssemblyVersion);
            this.labelCopyright.Text   = AssemblyCopyright;

            CreateAbbreviatedLinkText(labelWebsiteURL, ProjectUrls.PROJECT_HOME);
            CreateAbbreviatedLinkText(labelDocumentationURL, ProjectUrls.USER_GUIDE);
            CreateAbbreviatedLinkText(labelAppDataDirPath, ResourceMgr.ApplicationSpecificApplicationData());
            CreateAbbreviatedLinkText(labelExePath, Path.GetDirectoryName(Application.ExecutablePath));

            this.textBoxDescription.Text =
                string.Format("{0}; version {1}", AssemblyDescription, AssemblyVersion) + nl + nl
                + "========= Regional Settings =========" + nl
                + "Input Language: " + InputLanguage.CurrentInputLanguage.Culture.Name + nl
                + "Current Culture: " + CultureInfo.CurrentCulture.Name + nl
                + "Current UI Culture: " + CultureInfo.CurrentUICulture.Name + nl + nl
                + "========= Assemblies loaded (so far) =========" + nl
                + string.Join(nl, InstalledAssemblies.Assemblies.ToArray());
        }