/// <summary> /// Called when the control 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.Control(this); comboBoxShowAddressType.Items.Add(Strings.ShowLocalAddress); comboBoxShowAddressType.Items.Add(Strings.ShowNetworkAddress); comboBoxShowAddressType.Items.Add(Strings.ShowInternetAddress); comboBoxShowAddressType.SelectedIndex = 0; comboBoxSite.Items.Add(Strings.DefaultVersion); comboBoxSite.Items.Add(Strings.DesktopVersion); comboBoxSite.Items.Add(Strings.MobileVersion); comboBoxSite.Items.Add(Strings.FlightSimVersion); comboBoxSite.SelectedIndex = 0; if (Factory.Singleton.Resolve <IRuntimeEnvironment>().Singleton.IsMono) { linkLabelAddress.TextAlign = ContentAlignment.TopLeft; } } }
/// <summary> /// Called when the control has been loaded and initialised but is not yet on display. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { Localise.Control(this); } }
/// <summary> /// Called after the control has been fully constructed but is not yet on display. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { Localise.Control(this); _Sorter.RefreshSortIndicators(); } }
/// <summary> /// Raised when the control has been created but is not yet visible. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { Localise.Control(this); ConnectionStatus = ConnectionStatus.Disconnected; labelCountAircraft.Text = "0"; labelTotalMessages.Text = "0"; } }
/// <summary> /// See base class docs. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { Localise.Control(this); var defaultAccesses = Enum.GetValues(typeof(DefaultAccess)).OfType <DefaultAccess>().ToArray(); _DefaultAccessItems = new ItemDescriptionList <DefaultAccess>(defaultAccesses, r => Describe.DefaultAccess(r)); foreach (var item in _DefaultAccessItems) { comboBoxDefaultAccess.Items.Add(item); } CopyDefaultAccessToControl(); _AddressesWrapper = new GenericListWrapper <string>(Addresses); _Addresses.ListChanged += Addresses_ListChanged; CopyAddressesToControl(); } }