Beispiel #1
0
        /// <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;
                }
            }
        }
Beispiel #2
0
 /// <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);
     }
 }
Beispiel #3
0
 /// <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";
            }
        }
Beispiel #5
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();
            }
        }