ACAT.Lib.Extension.CommandHandlers.ShowDialogsHandler.showAboutBox C# (CSharp) Method

showAboutBox() private method

Displays the about box
private showAboutBox ( Form parentForm ) : void
parentForm System.Windows.Forms.Form scanner form
return void
        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());
        }