Esempio n. 1
0
        /// <summary>
        /// Get a reference to the form proxy singleton.
        /// </summary>
        /// <returns>A reference to the form proxy.</returns>
        public static AboutFormProxy GetInstance()
        {
            if (_singleton == null)
            {
                _singleton = new AboutFormProxy();
            }

            return(_singleton);
        }
Esempio n. 2
0
        /// <summary>
        /// Create an instance of the default about box form.
        /// </summary>
        public AboutForm()
        {
            ApplicationManager applicationManager =
                ApplicationManager.GetInstance();

            ClientProfile profile = applicationManager.ClientProfile;

            _aboutBoxTextColor = profile.AboutBoxTextColor;

            InitializeComponent();

            BackgroundImage = profile.AboutBoxImage;

            Text = String.Format("{0} {1}",
                                 Resources.AboutTitle,
                                 profile.ClientTitle);

            _clientCopyrightLabel.Text = profile.CopyrightText;

            _coreCopyrightLabel.Text = String.Format("{0} {1}\r\n{2}\r\n{3}",
                                                     Resources.AboutCopyright1,
                                                     GetVersionNumber(),
                                                     Resources.AboutCopyright2,
                                                     Resources.AboutCopyright3);

            _dockpanelCopyrightLabel.Text = String.Format("{0}\r\n{1}",
                                                          Resources.AboutCopyrightDPS1,
                                                          Resources.AboutCopyrightDPS2);

            _pluginManager = PluginManager.GetInstance();

            foreach (PluginModule plugin in _pluginManager.RegisteredPlugins)
            {
                _pluginListBox.Items.Add(plugin);
            }

            // Allow client applications to modify the form.
            AboutFormProxy.GetInstance().UpdateFormControls(Controls);
        }