# HG changeset patch # User StephaneLenclud # Date 1398708128 -7200 # Node ID d16669f69f0dd4e0d3df7b714455adadda997a81 # Parent 328515997e3517e1a1c5ae6706f025ba44460282 IdwTest:Adding support for sending text to VFD. diff -r 328515997e35 -r d16669f69f0d IdwTest/MainForm.Designer.cs --- a/IdwTest/MainForm.Designer.cs Mon Apr 21 12:02:38 2014 +0200 +++ b/IdwTest/MainForm.Designer.cs Mon Apr 28 20:02:08 2014 +0200 @@ -43,9 +43,9 @@ this.label3 = new System.Windows.Forms.Label(); this.buttonToggleTimer = new System.Windows.Forms.Button(); this.groupBoxTimer = new System.Windows.Forms.GroupBox(); + this.checkBoxRandomEq = new System.Windows.Forms.CheckBox(); + this.numericTimerInterval = new System.Windows.Forms.NumericUpDown(); this.label4 = new System.Windows.Forms.Label(); - this.numericTimerInterval = new System.Windows.Forms.NumericUpDown(); - this.checkBoxRandomEq = new System.Windows.Forms.CheckBox(); this.groupBoxVfd.SuspendLayout(); this.groupBoxLcd.SuspendLayout(); this.groupBoxTimer.SuspendLayout(); @@ -137,6 +137,7 @@ this.buttonSetVfdText.TabIndex = 5; this.buttonSetVfdText.Text = "Update"; this.buttonSetVfdText.UseVisualStyleBackColor = true; + this.buttonSetVfdText.Click += new System.EventHandler(this.buttonSetVfdText_Click); // // groupBoxLcd // @@ -199,37 +200,6 @@ this.groupBoxTimer.TabStop = false; this.groupBoxTimer.Text = "Timer"; // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(7, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(67, 13); - this.label4.TabIndex = 4; - this.label4.Text = "Interval (ms):"; - // - // numericTimerInterval - // - this.numericTimerInterval.Location = new System.Drawing.Point(74, 18); - this.numericTimerInterval.Maximum = new decimal(new int[] { - 10000, - 0, - 0, - 0}); - this.numericTimerInterval.Minimum = new decimal(new int[] { - 1, - 0, - 0, - 0}); - this.numericTimerInterval.Name = "numericTimerInterval"; - this.numericTimerInterval.Size = new System.Drawing.Size(120, 20); - this.numericTimerInterval.TabIndex = 8; - this.numericTimerInterval.Value = new decimal(new int[] { - 250, - 0, - 0, - 0}); - // // checkBoxRandomEq // this.checkBoxRandomEq.AutoSize = true; @@ -240,6 +210,37 @@ this.checkBoxRandomEq.Text = "Random EQ"; this.checkBoxRandomEq.UseVisualStyleBackColor = true; // + // numericTimerInterval + // + this.numericTimerInterval.Location = new System.Drawing.Point(74, 18); + this.numericTimerInterval.Maximum = new decimal(new int[] { + 10000, + 0, + 0, + 0}); + this.numericTimerInterval.Minimum = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.numericTimerInterval.Name = "numericTimerInterval"; + this.numericTimerInterval.Size = new System.Drawing.Size(120, 20); + this.numericTimerInterval.TabIndex = 8; + this.numericTimerInterval.Value = new decimal(new int[] { + 250, + 0, + 0, + 0}); + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(7, 20); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(67, 13); + this.label4.TabIndex = 4; + this.label4.Text = "Interval (ms):"; + // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); diff -r 328515997e35 -r d16669f69f0d IdwTest/MainForm.cs --- a/IdwTest/MainForm.cs Mon Apr 21 12:02:38 2014 +0200 +++ b/IdwTest/MainForm.cs Mon Apr 28 20:02:08 2014 +0200 @@ -102,5 +102,10 @@ } } + private void buttonSetVfdText_Click(object sender, EventArgs e) + { + iMON.Display.IDW_SetVfdText(textBoxVfdTop.Text, textBoxVfdBottom.Text); + } + } }