/// <summary> /// Called after the form has been loaded but before it is shown to the user. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { Localise.Form(this); pictureBoxLogo.Image = Images.Radio48x48; Answers = new ReceiverConfigurationWizardAnswers() { ConnectionType = ConnectionType.TCP, DedicatedReceiver = DedicatedReceiver.KineticAvionicsAll, KineticConnection = KineticConnection.BaseStation, ReceiverClass = ReceiverClass.SoftwareDefinedRadio, SdrDecoder = SdrDecoder.Rtl1090, UseLoopbackAddress = YesNo.Yes, }; foreach (WizardPage page in wizard.Pages) { page.CloseFromNext += Page_CloseFromNext; page.CloseFromBack += Page_CloseFromBack; } } }
/// <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); } } }
/// <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 form has loaded but before it is shown to the user. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { Localise.Form(this); _Presenter = Factory.Resolve <IBackgroundThreadQueuesPresenter>(); _Presenter.Initialise(this); } }
/// <summary> /// Called after the form has loaded but before it is shown to the user. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { Localise.Form(this); _Presenter = Factory.Singleton.Resolve <IAircraftOnlineLookupLogPresenter>(); _Presenter.Initialise(this); } }
/// <summary> /// Called after the view has loaded but before it is shown to the user. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { Localise.Form(this); _Presenter = Factory.Resolve <ICidrEditPresenter>(); _Presenter.Initialise(this); } }
/// <summary> /// Called after the view has been created but before it is shown to the user. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { Localise.Form(this); var presenter = Factory.Singleton.Resolve <IInvalidPluginsPresenter>(); presenter.Initialise(this); } }
/// <summary> /// See base docs. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { Localise.Form(this); PopulateListView(); PopulateDropDown(); EnableDisableControls(); } }
/// <summary> /// Raised after the dialog has been initialised but before it is shown on screen. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { Localise.Form(this); Status = ""; _Presenter = Factory.Singleton.Resolve <IDownloadDataPresenter>(); _Presenter.Initialise(this); } }
/// <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); } }
/// <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 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.Resolve <IFlightSimulatorPresenter>(); _Presenter.FlightSimulatorAircraftList = _FlightSimulatorAircraftList; _Presenter.WebServer = _WebServer; _Presenter.Initialise(this); } }
/// <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 it is on display to the user. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { Localise.Form(this); labelProgressText.Text = ""; _Presenter = Factory.Singleton.Resolve <IShutdownPresenter>(); _Presenter.UPnpManager = _UPnpManager; _Presenter.Initialise(this); backgroundWorker.RunWorkerAsync(); } }
/// <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); }
/// <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 control has loaded but before it displays anything to the user. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { Localise.Form(this); _AllText = String.Format("<{0}>", Strings.AllCaps); if (HideConnectorName) { listView.Columns.Remove(columnHeaderConnector); columnHeaderMessage.Width += columnHeaderConnector.Width; } _Presenter = Factory.Singleton.Resolve <IConnectorActivityLogPresenter>(); _Presenter.Initialise(this); _Sorter.RefreshSortIndicators(); } }
/// <summary> /// Raised when the form has loaded but before it's on view. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { Localise.Form(this); pictureBoxLogo.Image = Images.Logo128x128; Icon = Images.ApplicationIcon; labelApplicationTitle.Text = ""; labelApplicationVersion.Text = ""; labelProgressText.Text = ""; _Presenter = Factory.Singleton.Resolve <ISplashPresenter>(); _Presenter.BackgroundThreadExceptionHandler = _BackgroundThreadExceptionHandler; _Presenter.CommandLineArgs = _CommandLineArgs; _Presenter.Initialise(this); _UIThreadCultureInfo = Thread.CurrentThread.CurrentUICulture; backgroundWorker.RunWorkerAsync(); } }
/// <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); } }