Ejemplo n.º 1
0
        public SetupDialog(ElexolEtherIOData data)
        {
            InitializeComponent();
            ForeColor = ThemeColorTable.ForeColor;
            BackColor = ThemeColorTable.BackgroundColor;
            ThemeUpdateControls.UpdateControls(this);

            _data = data;

            if (_data.Address == null)
            {
                ipAddressTextBox.Text = "127.0.0.1";
            }
            else
            {
                ipAddressTextBox.Text = _data.Address.ToString();
            }

            if (_data.Port <= 0)
            {
                portTextBox.Text = "2424";
            }
            else
            {
                portTextBox.Text = _data.Port.ToString();
            }

            if (_data.MinimumIntensity > 1)
            {
                m_MinIntensity = _data.MinimumIntensity;
            }
            sliderMinIntensityTrackBar.Value = m_MinIntensity;
            minIntensityLabel.Text           = m_MinIntensity.ToString();
        }
Ejemplo n.º 2
0
        public SetupDialog(ElexolEtherIOData data)
        {
            InitializeComponent();
            ForeColor = ThemeColorTable.ForeColor;
            BackColor = ThemeColorTable.BackgroundColor;
            ThemeUpdateControls.UpdateControls(this);

            _data = data;

            if (_data.Address == null)
            {
                ipAddressTextBox.Text = "127.0.0.1";
            }
            else
            {
                ipAddressTextBox.Text = _data.Address.ToString();
            }

            if (_data.Port <= 0)
            {
                portTextBox.Text = "2424";
            }
            else
            {
                portTextBox.Text = _data.Port.ToString();
            }

            if (_data.MinimumIntensity > 1)
            {
                m_MinIntensity = _data.MinimumIntensity;
            }
            sliderMinIntensityTrackBar.Value = m_MinIntensity;
            minIntensityLabel.Text = m_MinIntensity.ToString();
        }
Ejemplo n.º 3
0
        public SetupDialog(ElexolEtherIOData data)
        {
            InitializeComponent();

            _data = data;

            if (_data.Address == null)
            {
                ipAddressTextBox.Text = "127.0.0.1";
            }
            else
            {
                ipAddressTextBox.Text = _data.Address.ToString();
            }

            if (_data.Port <= 0)
            {
                portTextBox.Text = "2424";
            }
            else
            {
                portTextBox.Text = _data.Port.ToString();
            }

            if (_data.MinimumIntensity > 1)
            {
                m_MinIntensity = _data.MinimumIntensity;
            }
            sliderMinIntensityTrackBar.Value = m_MinIntensity;
            minIntensityLabel.Text = m_MinIntensity.ToString();
        }
Ejemplo n.º 4
0
        public SetupDialog(ElexolEtherIOData data)
        {
            InitializeComponent();

            _data = data;

            if (_data.Address == null)
            {
                ipAddressTextBox.Text = "127.0.0.1";
            }
            else
            {
                ipAddressTextBox.Text = _data.Address.ToString();
            }

            if (_data.Port <= 0)
            {
                portTextBox.Text = "2424";
            }
            else
            {
                portTextBox.Text = _data.Port.ToString();
            }

            if (_data.MinimumIntensity > 1)
            {
                m_MinIntensity = _data.MinimumIntensity;
            }
            sliderMinIntensityTrackBar.Value = m_MinIntensity;
            minIntensityLabel.Text           = m_MinIntensity.ToString();
        }