コード例 #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();
        }
コード例 #2
0
ファイル: SetupDialog.cs プロジェクト: naztrain/vixen
        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();
        }
コード例 #3
0
ファイル: SetupDialog.cs プロジェクト: Jchuchla/vixen
        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();
        }
コード例 #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();
        }