示例#1
0
        /// <summary>
        /// Called when the form is ready for use but not yet on screen.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (!DesignMode)
            {
                toolStripDropDownButtonInvalidPluginCount.Visible    = false;
                toolStripDropDownButtonLaterVersionAvailable.Visible = false;

                Localise.Form(this);
                Localise.ToolStrip(contextMenuStripNotifyIcon);
                notifyIcon.Text = Strings.VirtualRadarServer;

                _OnlineHelp = new OnlineHelpHelper(this, OnlineHelpAddress.WinFormsMainDialog);

                _Presenter = Factory.Singleton.Resolve <IMainPresenter>();
                _Presenter.Initialise(this);
                _Presenter.UPnpManager = _UPnpManager;

                var runtimeEnvironment = Factory.Singleton.ResolveSingleton <IRuntimeEnvironment>();
                if (runtimeEnvironment.Is64BitProcess)
                {
                    Text = String.Format("{0} ({1})", Text, Strings.Title64Bit);
                }
            }
        }