예제 #1
0
파일: MainView.cs 프로젝트: kouweizhong/vrs
        /// <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);
                }
            }
        }