示例#1
0
        /// <summary>
        /// Displays the about box
        /// </summary>
        /// <param name="parentForm">scanner form</param>
        private void showAboutBox(Form parentForm)
        {
            object[] attributes = ACATPreferences.ApplicationAssembly.GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
            var      appName    = (attributes.Length != 0) ? ((AssemblyTitleAttribute)attributes[0]).Title : String.Empty;

            var version     = ACATPreferences.ApplicationAssembly.GetName().Version.ToString();
            var versionInfo = "Version " + version;

            attributes = ACATPreferences.ApplicationAssembly.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
            var copyrightInfo = (attributes.Length != 0) ? ((AssemblyCopyrightAttribute)attributes[0]).Copyright : String.Empty;

            DialogUtils.ShowAboutBox(parentForm, "AboutBoxLogo.png", appName, versionInfo, copyrightInfo, Attributions.GetAll());
        }
示例#2
0
        /// <summary>
        /// Displays the about box
        /// </summary>
        /// <param name="parentForm">scanner form</param>
        private void showAboutBox(Form parentForm)
        {
            object[] attributes = ACATPreferences.ApplicationAssembly.GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
            var      appName    = (attributes.Length != 0) ? ((AssemblyTitleAttribute)attributes[0]).Title : String.Empty;

            var version     = ACATPreferences.ApplicationAssembly.GetName().Version.ToString();
            var versionInfo = string.Format(ACATExtension.Resources.Version0, version);

            //attributes = ACATPreferences.ApplicationAssembly.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
            //var copyrightInfo = (attributes.Length != 0) ? ((AssemblyCopyrightAttribute)attributes[0]).Copyright : String.Empty;
            var copyrightInfo = ACATExtension.Resources.AssemblyCopyright.Replace("\\n", Environment.NewLine);

            DialogUtils.ShowAboutBox(parentForm, "AboutBoxLogo.png", appName, versionInfo, copyrightInfo, Attributions.GetAll());
        }