ACAT.Lib.Extension.DialogUtils.ShowAboutBox C# (CSharp) Method

ShowAboutBox() public static method

Displays the About box
public static ShowAboutBox ( Form parentForm, String logo, String appName, String versionInfo, String copyrightInfo, IEnumerable attributions ) : void
parentForm System.Windows.Forms.Form parent form
logo String filename of the logo to display
appName String Name of the assembly
versionInfo String version information
copyrightInfo String copyright info
attributions IEnumerable 3rd party attributions
return void
        public static void ShowAboutBox(Form parentForm, String logo, String appName,
                                        String versionInfo, String copyrightInfo,
                                        IEnumerable<String> attributions)
        {
            parentForm.Invoke(new MethodInvoker(delegate
            {
                Form dlg = Context.AppPanelManager.CreatePanel("AboutBoxForm");
                if (dlg is IExtension)
                {
                    ExtensionInvoker invoker = (dlg as IExtension).GetInvoker();
                    invoker.SetValue("Logo", logo);
                    invoker.SetValue("AppName", appName);
                    invoker.SetValue("VersionInfo", versionInfo);
                    invoker.SetValue("CopyrightInfo", copyrightInfo);
                    invoker.SetValue("Attributions", attributions);
                    invoker.SetValue("ShowButton", true);
                    Context.AppPanelManager.ShowDialog(dlg as IPanel);
                }
            }));
        }