IdwTest:Adding support for sending text to VFD. default tip
authorStephaneLenclud
Mon, 28 Apr 2014 20:02:08 +0200
changeset 5d16669f69f0d
parent 4 328515997e35
IdwTest:Adding support for sending text to VFD.
IdwTest/MainForm.Designer.cs
IdwTest/MainForm.cs
     1.1 --- a/IdwTest/MainForm.Designer.cs	Mon Apr 21 12:02:38 2014 +0200
     1.2 +++ b/IdwTest/MainForm.Designer.cs	Mon Apr 28 20:02:08 2014 +0200
     1.3 @@ -43,9 +43,9 @@
     1.4              this.label3 = new System.Windows.Forms.Label();
     1.5              this.buttonToggleTimer = new System.Windows.Forms.Button();
     1.6              this.groupBoxTimer = new System.Windows.Forms.GroupBox();
     1.7 +            this.checkBoxRandomEq = new System.Windows.Forms.CheckBox();
     1.8 +            this.numericTimerInterval = new System.Windows.Forms.NumericUpDown();
     1.9              this.label4 = new System.Windows.Forms.Label();
    1.10 -            this.numericTimerInterval = new System.Windows.Forms.NumericUpDown();
    1.11 -            this.checkBoxRandomEq = new System.Windows.Forms.CheckBox();
    1.12              this.groupBoxVfd.SuspendLayout();
    1.13              this.groupBoxLcd.SuspendLayout();
    1.14              this.groupBoxTimer.SuspendLayout();
    1.15 @@ -137,6 +137,7 @@
    1.16              this.buttonSetVfdText.TabIndex = 5;
    1.17              this.buttonSetVfdText.Text = "Update";
    1.18              this.buttonSetVfdText.UseVisualStyleBackColor = true;
    1.19 +            this.buttonSetVfdText.Click += new System.EventHandler(this.buttonSetVfdText_Click);
    1.20              // 
    1.21              // groupBoxLcd
    1.22              // 
    1.23 @@ -199,37 +200,6 @@
    1.24              this.groupBoxTimer.TabStop = false;
    1.25              this.groupBoxTimer.Text = "Timer";
    1.26              // 
    1.27 -            // label4
    1.28 -            // 
    1.29 -            this.label4.AutoSize = true;
    1.30 -            this.label4.Location = new System.Drawing.Point(7, 20);
    1.31 -            this.label4.Name = "label4";
    1.32 -            this.label4.Size = new System.Drawing.Size(67, 13);
    1.33 -            this.label4.TabIndex = 4;
    1.34 -            this.label4.Text = "Interval (ms):";
    1.35 -            // 
    1.36 -            // numericTimerInterval
    1.37 -            // 
    1.38 -            this.numericTimerInterval.Location = new System.Drawing.Point(74, 18);
    1.39 -            this.numericTimerInterval.Maximum = new decimal(new int[] {
    1.40 -            10000,
    1.41 -            0,
    1.42 -            0,
    1.43 -            0});
    1.44 -            this.numericTimerInterval.Minimum = new decimal(new int[] {
    1.45 -            1,
    1.46 -            0,
    1.47 -            0,
    1.48 -            0});
    1.49 -            this.numericTimerInterval.Name = "numericTimerInterval";
    1.50 -            this.numericTimerInterval.Size = new System.Drawing.Size(120, 20);
    1.51 -            this.numericTimerInterval.TabIndex = 8;
    1.52 -            this.numericTimerInterval.Value = new decimal(new int[] {
    1.53 -            250,
    1.54 -            0,
    1.55 -            0,
    1.56 -            0});
    1.57 -            // 
    1.58              // checkBoxRandomEq
    1.59              // 
    1.60              this.checkBoxRandomEq.AutoSize = true;
    1.61 @@ -240,6 +210,37 @@
    1.62              this.checkBoxRandomEq.Text = "Random EQ";
    1.63              this.checkBoxRandomEq.UseVisualStyleBackColor = true;
    1.64              // 
    1.65 +            // numericTimerInterval
    1.66 +            // 
    1.67 +            this.numericTimerInterval.Location = new System.Drawing.Point(74, 18);
    1.68 +            this.numericTimerInterval.Maximum = new decimal(new int[] {
    1.69 +            10000,
    1.70 +            0,
    1.71 +            0,
    1.72 +            0});
    1.73 +            this.numericTimerInterval.Minimum = new decimal(new int[] {
    1.74 +            1,
    1.75 +            0,
    1.76 +            0,
    1.77 +            0});
    1.78 +            this.numericTimerInterval.Name = "numericTimerInterval";
    1.79 +            this.numericTimerInterval.Size = new System.Drawing.Size(120, 20);
    1.80 +            this.numericTimerInterval.TabIndex = 8;
    1.81 +            this.numericTimerInterval.Value = new decimal(new int[] {
    1.82 +            250,
    1.83 +            0,
    1.84 +            0,
    1.85 +            0});
    1.86 +            // 
    1.87 +            // label4
    1.88 +            // 
    1.89 +            this.label4.AutoSize = true;
    1.90 +            this.label4.Location = new System.Drawing.Point(7, 20);
    1.91 +            this.label4.Name = "label4";
    1.92 +            this.label4.Size = new System.Drawing.Size(67, 13);
    1.93 +            this.label4.TabIndex = 4;
    1.94 +            this.label4.Text = "Interval (ms):";
    1.95 +            // 
    1.96              // MainForm
    1.97              // 
    1.98              this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     2.1 --- a/IdwTest/MainForm.cs	Mon Apr 21 12:02:38 2014 +0200
     2.2 +++ b/IdwTest/MainForm.cs	Mon Apr 28 20:02:08 2014 +0200
     2.3 @@ -102,5 +102,10 @@
     2.4              }
     2.5          }
     2.6  
     2.7 +        private void buttonSetVfdText_Click(object sender, EventArgs e)
     2.8 +        {
     2.9 +            iMON.Display.IDW_SetVfdText(textBoxVfdTop.Text, textBoxVfdBottom.Text);
    2.10 +        }
    2.11 +
    2.12      }
    2.13  }