Пример #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);
                }
            }
        }
Пример #2
0
        /// <summary>
        /// Called after the form has been initialised but before it is shown to the user.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            Localise.Form(this);

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

            _Presenter = Factory.Singleton.Resolve <IStatisticsPresenter>();
            _Presenter.Initialise(this);
        }
        /// <summary>
        /// Called after the view has been created but before the user sees anything.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            Localise.Form(this);
            PopulateLocations();

            _Presenter = Factory.Singleton.Resolve <IReceiverLocationsPresenter>();
            _Presenter.Initialise(this);

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

            SelectedReceiverLocation = _SelectedReceiverLocation;
        }
Пример #4
0
        /// <summary>
        /// Called when the view is fully constructed but not yet on display.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (!DesignMode)
            {
                Localise.Form(this);

                _Presenter = Factory.Singleton.Resolve <IConnectionClientLogPresenter>();
                _Presenter.Initialise(this);

                _OnlineHelp = new OnlineHelpHelper(this, OnlineHelpAddress.WinFormsConnectionClientLogDialog);
            }
        }
Пример #5
0
        /// <summary>
        /// Called when the form has been created but before it is on display.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (!DesignMode)
            {
                Localise.Form(this);
                logoPictureBox.Image = Resources.Images.HelpAbout;

                _Presenter = Factory.Singleton.Resolve <IAboutPresenter>();
                _Presenter.Initialise(this);

                _OnlineHelp = new OnlineHelpHelper(this, OnlineHelpAddress.WinFormsAboutDialog);
            }
        }
Пример #6
0
        /// <summary>
        /// Called once the form has been initialised but before it's on display.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (!DesignMode)
            {
                Localise.Form(this);

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

                _Presenter = Factory.Resolve <IFlightSimulatorPresenter>();
                _Presenter.FlightSimulatorAircraftList = _FlightSimulatorAircraftList;
                _Presenter.WebServer = _WebServer;
                _Presenter.Initialise(this);
            }
        }
Пример #7
0
        /// <summary>
        /// Called after the form has loaded but is not yet on screen.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (!DesignMode)
            {
                Localise.Form(this);

                _Presenter = Factory.Resolve <IConnectionSessionLogPresenter>();
                _Presenter.Initialise(this);

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

                OnShowSessionsClicked(EventArgs.Empty);
            }
        }
        /// <summary>
        /// Called after the view has been created but before the user sees anything.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            Localise.Form(this);
            comboBoxFormat.Items.Clear();
            foreach (var formatItem in _FormatItems)
            {
                comboBoxFormat.Items.Add(formatItem);
            }

            PopulateServers();

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

            _Presenter = Factory.Singleton.Resolve <IRebroadcastOptionsPresenter>();
            _Presenter.Initialise(this);
        }
Пример #9
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);

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

                _Presenter = Factory.Singleton.Resolve <IMainPresenter>();
                _Presenter.Initialise(this);
                _Presenter.BaseStationAircraftList = _BaseStationAircraftList;
                _Presenter.UPnpManager             = _UPnpManager;
            }
        }
        /// <summary>
        /// Called after the form has finished initialising but before it has been shown to the user.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (!DesignMode)
            {
                Localise.Form(this);

                ArrangeControls();

                Populate();

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

                _Presenter = Factory.Singleton.Resolve <IOptionsPresenter>();
                _Presenter.Initialise(this);

                RecordInitialValues();
                listBox.SelectedIndex = 0;

                OnValuesChanged(EventArgs.Empty);
            }
        }
        /// <summary>
        /// Called when the view is fully constructed but not yet on display.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if(!DesignMode) {
                Localise.Form(this);

                _Presenter = Factory.Singleton.Resolve<IConnectionClientLogPresenter>();
                _Presenter.Initialise(this);

                _OnlineHelp = new OnlineHelpHelper(this, OnlineHelpAddress.WinFormsConnectionClientLogDialog);
            }
        }
Пример #12
0
        /// <summary>
        /// Called when the form has been created but before it is on display.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if(!DesignMode) {
                Localise.Form(this);
                logoPictureBox.Image = Resources.Images.HelpAbout;

                _Presenter = Factory.Singleton.Resolve<IAboutPresenter>();
                _Presenter.Initialise(this);

                _OnlineHelp = new OnlineHelpHelper(this, OnlineHelpAddress.WinFormsAboutDialog);
            }
        }
        /// <summary>
        /// Called once the form has been initialised but before it's on display.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if(!DesignMode) {
                Localise.Form(this);

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

                _Presenter = Factory.Singleton.Resolve<IFlightSimulatorXPresenter>();
                _Presenter.BaseStationAircraftList = _BaseStationAircraftList;
                _Presenter.FlightSimulatorAircraftList = _FlightSimulatorAircraftList;
                _Presenter.WebServer = _WebServer;
                _Presenter.Initialise(this);
            }
        }
        /// <summary>
        /// Called after the form has finished initialising but before it has been shown to the user.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if(!DesignMode) {
                Localise.Form(this);

                ArrangeControls();

                Populate();

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

                _Presenter = Factory.Singleton.Resolve<IOptionsPresenter>();
                _Presenter.Initialise(this);

                RecordInitialValues();
                listBox.SelectedIndex = 0;

                OnValuesChanged(EventArgs.Empty);
            }
        }
        /// <summary>
        /// Called after the form has been initialised but before it is shown to the user.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            Localise.Form(this);

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

            var presenter = Factory.Singleton.Resolve<IStatisticsPresenter>();
            presenter.Initialise(this);
        }
Пример #16
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);

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

                _Presenter = Factory.Singleton.Resolve<IMainPresenter>();
                _Presenter.Initialise(this);
                _Presenter.BaseStationAircraftList = _BaseStationAircraftList;
                _Presenter.UPnpManager = _UPnpManager;
            }
        }
        /// <summary>
        /// Called after the view has been created but before the user sees anything.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            Localise.Form(this);
            PopulateLocations();

            _Presenter = Factory.Singleton.Resolve<IReceiverLocationsPresenter>();
            _Presenter.Initialise(this);

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

            SelectedReceiverLocation = _SelectedReceiverLocation;
        }
        /// <summary>
        /// Called after the view has been created but before the user sees anything.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            Localise.Form(this);
            comboBoxFormat.Items.Clear();
            foreach(var formatItem in _FormatItems) {
                comboBoxFormat.Items.Add(formatItem);
            }

            PopulateServers();

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

            _Presenter = Factory.Singleton.Resolve<IRebroadcastOptionsPresenter>();
            _Presenter.Initialise(this);
        }