Exemplo n.º 1
0
        public ConfigDialog(LibV4LIO owner)
        {
            this.owner = owner;

            this.labelSampleRate = new System.Windows.Forms.Label();
            this.labelSampleRate.Location = new System.Drawing.Point(0, 0);
            this.labelSampleRate.Text = "Sample Rate";
            this.Controls.Add(this.labelSampleRate);

            this.NumericUpDownSampleRate = new System.Windows.Forms.NumericUpDown();
            this.NumericUpDownSampleRate.Maximum = 20000000;
            this.NumericUpDownSampleRate.Minimum = 900000;
            this.NumericUpDownSampleRate.Value = (decimal) this.owner.Samplerate;
            this.NumericUpDownSampleRate.Location = new System.Drawing.Point(150, 0);
            this.NumericUpDownSampleRate.ValueChanged += new System.EventHandler(this.NumericUpDownSampleRate_ValueChanged);
            this.Controls.Add(this.NumericUpDownSampleRate);

            this.Text = "V4L2 Config";
            this.TopMost = true;
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.RTLTcpSettings_FormClosing);
        }
Exemplo n.º 2
0
        public ConfigDialog(LibV4LIO owner)
        {
            this.owner = owner;

            this.labelSampleRate          = new System.Windows.Forms.Label();
            this.labelSampleRate.Location = new System.Drawing.Point(0, 0);
            this.labelSampleRate.Text     = "Sample Rate";
            this.Controls.Add(this.labelSampleRate);

            this.NumericUpDownSampleRate               = new System.Windows.Forms.NumericUpDown();
            this.NumericUpDownSampleRate.Maximum       = 20000000;
            this.NumericUpDownSampleRate.Minimum       = 900000;
            this.NumericUpDownSampleRate.Value         = (decimal)this.owner.Samplerate;
            this.NumericUpDownSampleRate.Location      = new System.Drawing.Point(150, 0);
            this.NumericUpDownSampleRate.ValueChanged += new System.EventHandler(this.NumericUpDownSampleRate_ValueChanged);
            this.Controls.Add(this.NumericUpDownSampleRate);

            this.Text         = "V4L2 Config";
            this.TopMost      = true;
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.RTLTcpSettings_FormClosing);
        }