Adding first draft of our text application.
This is most useful for testing stuff without MediaPortal.
6 /// Required designer variable.
8 private System.ComponentModel.IContainer components = null;
11 /// Clean up any resources being used.
13 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14 protected override void Dispose(bool disposing)
16 if (disposing && (components != null))
20 base.Dispose(disposing);
23 #region Windows Form Designer generated code
26 /// Required method for Designer support - do not modify
27 /// the contents of this method with the code editor.
29 private void InitializeComponent()
31 this.buttonInit = new System.Windows.Forms.Button();
32 this.buttonUninit = new System.Windows.Forms.Button();
33 this.labelStatus = new System.Windows.Forms.Label();
34 this.textBoxVfdTop = new System.Windows.Forms.TextBox();
35 this.textBoxVfdBottom = new System.Windows.Forms.TextBox();
36 this.groupBoxVfd = new System.Windows.Forms.GroupBox();
37 this.label2 = new System.Windows.Forms.Label();
38 this.label1 = new System.Windows.Forms.Label();
39 this.buttonSetVfdText = new System.Windows.Forms.Button();
40 this.groupBoxLcd = new System.Windows.Forms.GroupBox();
41 this.textBoxLcd = new System.Windows.Forms.TextBox();
42 this.buttonSetLcdText = new System.Windows.Forms.Button();
43 this.label3 = new System.Windows.Forms.Label();
44 this.buttonToggleTimer = new System.Windows.Forms.Button();
45 this.groupBoxTimer = new System.Windows.Forms.GroupBox();
46 this.label4 = new System.Windows.Forms.Label();
47 this.numericTimerInterval = new System.Windows.Forms.NumericUpDown();
48 this.checkBoxRandomEq = new System.Windows.Forms.CheckBox();
49 this.groupBoxVfd.SuspendLayout();
50 this.groupBoxLcd.SuspendLayout();
51 this.groupBoxTimer.SuspendLayout();
52 ((System.ComponentModel.ISupportInitialize)(this.numericTimerInterval)).BeginInit();
57 this.buttonInit.Location = new System.Drawing.Point(12, 12);
58 this.buttonInit.Name = "buttonInit";
59 this.buttonInit.Size = new System.Drawing.Size(75, 23);
60 this.buttonInit.TabIndex = 0;
61 this.buttonInit.Text = "Init";
62 this.buttonInit.UseVisualStyleBackColor = true;
63 this.buttonInit.Click += new System.EventHandler(this.buttonInit_Click);
67 this.buttonUninit.Location = new System.Drawing.Point(93, 12);
68 this.buttonUninit.Name = "buttonUninit";
69 this.buttonUninit.Size = new System.Drawing.Size(75, 23);
70 this.buttonUninit.TabIndex = 1;
71 this.buttonUninit.Text = "Uninit";
72 this.buttonUninit.UseVisualStyleBackColor = true;
73 this.buttonUninit.Click += new System.EventHandler(this.buttonUninit_Click);
77 this.labelStatus.AutoSize = true;
78 this.labelStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
79 this.labelStatus.Location = new System.Drawing.Point(174, 15);
80 this.labelStatus.Name = "labelStatus";
81 this.labelStatus.Size = new System.Drawing.Size(113, 20);
82 this.labelStatus.TabIndex = 2;
83 this.labelStatus.Text = "Not connected";
87 this.textBoxVfdTop.Location = new System.Drawing.Point(94, 19);
88 this.textBoxVfdTop.MaxLength = 16;
89 this.textBoxVfdTop.Name = "textBoxVfdTop";
90 this.textBoxVfdTop.Size = new System.Drawing.Size(100, 20);
91 this.textBoxVfdTop.TabIndex = 3;
95 this.textBoxVfdBottom.Location = new System.Drawing.Point(94, 45);
96 this.textBoxVfdBottom.Name = "textBoxVfdBottom";
97 this.textBoxVfdBottom.Size = new System.Drawing.Size(100, 20);
98 this.textBoxVfdBottom.TabIndex = 4;
102 this.groupBoxVfd.Controls.Add(this.label2);
103 this.groupBoxVfd.Controls.Add(this.label1);
104 this.groupBoxVfd.Controls.Add(this.buttonSetVfdText);
105 this.groupBoxVfd.Controls.Add(this.textBoxVfdTop);
106 this.groupBoxVfd.Controls.Add(this.textBoxVfdBottom);
107 this.groupBoxVfd.Location = new System.Drawing.Point(12, 41);
108 this.groupBoxVfd.Name = "groupBoxVfd";
109 this.groupBoxVfd.Size = new System.Drawing.Size(200, 100);
110 this.groupBoxVfd.TabIndex = 5;
111 this.groupBoxVfd.TabStop = false;
112 this.groupBoxVfd.Text = "VFD";
116 this.label2.AutoSize = true;
117 this.label2.Location = new System.Drawing.Point(7, 48);
118 this.label2.Name = "label2";
119 this.label2.Size = new System.Drawing.Size(85, 13);
120 this.label2.TabIndex = 7;
121 this.label2.Text = "Text bottom line:";
125 this.label1.AutoSize = true;
126 this.label1.Location = new System.Drawing.Point(7, 22);
127 this.label1.Name = "label1";
128 this.label1.Size = new System.Drawing.Size(68, 13);
129 this.label1.TabIndex = 6;
130 this.label1.Text = "Text top line:";
134 this.buttonSetVfdText.Location = new System.Drawing.Point(119, 71);
135 this.buttonSetVfdText.Name = "buttonSetVfdText";
136 this.buttonSetVfdText.Size = new System.Drawing.Size(75, 23);
137 this.buttonSetVfdText.TabIndex = 5;
138 this.buttonSetVfdText.Text = "Update";
139 this.buttonSetVfdText.UseVisualStyleBackColor = true;
143 this.groupBoxLcd.Controls.Add(this.textBoxLcd);
144 this.groupBoxLcd.Controls.Add(this.buttonSetLcdText);
145 this.groupBoxLcd.Controls.Add(this.label3);
146 this.groupBoxLcd.Location = new System.Drawing.Point(218, 41);
147 this.groupBoxLcd.Name = "groupBoxLcd";
148 this.groupBoxLcd.Size = new System.Drawing.Size(200, 100);
149 this.groupBoxLcd.TabIndex = 6;
150 this.groupBoxLcd.TabStop = false;
151 this.groupBoxLcd.Text = "LCD";
155 this.textBoxLcd.Location = new System.Drawing.Point(94, 19);
156 this.textBoxLcd.Name = "textBoxLcd";
157 this.textBoxLcd.Size = new System.Drawing.Size(100, 20);
158 this.textBoxLcd.TabIndex = 2;
162 this.buttonSetLcdText.Location = new System.Drawing.Point(119, 71);
163 this.buttonSetLcdText.Name = "buttonSetLcdText";
164 this.buttonSetLcdText.Size = new System.Drawing.Size(75, 23);
165 this.buttonSetLcdText.TabIndex = 1;
166 this.buttonSetLcdText.Text = "Update";
167 this.buttonSetLcdText.UseVisualStyleBackColor = true;
168 this.buttonSetLcdText.Click += new System.EventHandler(this.buttonSetLcdText_Click);
172 this.label3.AutoSize = true;
173 this.label3.Location = new System.Drawing.Point(6, 22);
174 this.label3.Name = "label3";
175 this.label3.Size = new System.Drawing.Size(28, 13);
176 this.label3.TabIndex = 0;
177 this.label3.Text = "Text";
181 this.buttonToggleTimer.Location = new System.Drawing.Point(119, 71);
182 this.buttonToggleTimer.Name = "buttonToggleTimer";
183 this.buttonToggleTimer.Size = new System.Drawing.Size(75, 23);
184 this.buttonToggleTimer.TabIndex = 3;
185 this.buttonToggleTimer.Text = "Start";
186 this.buttonToggleTimer.UseVisualStyleBackColor = true;
187 this.buttonToggleTimer.Click += new System.EventHandler(this.buttonToggleTimer_Click);
191 this.groupBoxTimer.Controls.Add(this.checkBoxRandomEq);
192 this.groupBoxTimer.Controls.Add(this.numericTimerInterval);
193 this.groupBoxTimer.Controls.Add(this.label4);
194 this.groupBoxTimer.Controls.Add(this.buttonToggleTimer);
195 this.groupBoxTimer.Location = new System.Drawing.Point(12, 147);
196 this.groupBoxTimer.Name = "groupBoxTimer";
197 this.groupBoxTimer.Size = new System.Drawing.Size(200, 100);
198 this.groupBoxTimer.TabIndex = 7;
199 this.groupBoxTimer.TabStop = false;
200 this.groupBoxTimer.Text = "Timer";
204 this.label4.AutoSize = true;
205 this.label4.Location = new System.Drawing.Point(7, 20);
206 this.label4.Name = "label4";
207 this.label4.Size = new System.Drawing.Size(67, 13);
208 this.label4.TabIndex = 4;
209 this.label4.Text = "Interval (ms):";
211 // numericTimerInterval
213 this.numericTimerInterval.Location = new System.Drawing.Point(74, 18);
214 this.numericTimerInterval.Maximum = new decimal(new int[] {
219 this.numericTimerInterval.Minimum = new decimal(new int[] {
224 this.numericTimerInterval.Name = "numericTimerInterval";
225 this.numericTimerInterval.Size = new System.Drawing.Size(120, 20);
226 this.numericTimerInterval.TabIndex = 8;
227 this.numericTimerInterval.Value = new decimal(new int[] {
235 this.checkBoxRandomEq.AutoSize = true;
236 this.checkBoxRandomEq.Location = new System.Drawing.Point(10, 46);
237 this.checkBoxRandomEq.Name = "checkBoxRandomEq";
238 this.checkBoxRandomEq.Size = new System.Drawing.Size(84, 17);
239 this.checkBoxRandomEq.TabIndex = 9;
240 this.checkBoxRandomEq.Text = "Random EQ";
241 this.checkBoxRandomEq.UseVisualStyleBackColor = true;
245 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
246 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
247 this.ClientSize = new System.Drawing.Size(741, 454);
248 this.Controls.Add(this.groupBoxTimer);
249 this.Controls.Add(this.groupBoxLcd);
250 this.Controls.Add(this.groupBoxVfd);
251 this.Controls.Add(this.labelStatus);
252 this.Controls.Add(this.buttonUninit);
253 this.Controls.Add(this.buttonInit);
254 this.Name = "MainForm";
255 this.Text = "iMON Display Wrapper test";
256 this.groupBoxVfd.ResumeLayout(false);
257 this.groupBoxVfd.PerformLayout();
258 this.groupBoxLcd.ResumeLayout(false);
259 this.groupBoxLcd.PerformLayout();
260 this.groupBoxTimer.ResumeLayout(false);
261 this.groupBoxTimer.PerformLayout();
262 ((System.ComponentModel.ISupportInitialize)(this.numericTimerInterval)).EndInit();
263 this.ResumeLayout(false);
264 this.PerformLayout();
270 private System.Windows.Forms.Button buttonInit;
271 private System.Windows.Forms.Button buttonUninit;
272 private System.Windows.Forms.Label labelStatus;
273 private System.Windows.Forms.TextBox textBoxVfdTop;
274 private System.Windows.Forms.TextBox textBoxVfdBottom;
275 private System.Windows.Forms.GroupBox groupBoxVfd;
276 private System.Windows.Forms.Label label2;
277 private System.Windows.Forms.Label label1;
278 private System.Windows.Forms.Button buttonSetVfdText;
279 private System.Windows.Forms.GroupBox groupBoxLcd;
280 private System.Windows.Forms.TextBox textBoxLcd;
281 private System.Windows.Forms.Button buttonSetLcdText;
282 private System.Windows.Forms.Label label3;
283 private System.Windows.Forms.Button buttonToggleTimer;
284 private System.Windows.Forms.GroupBox groupBoxTimer;
285 private System.Windows.Forms.NumericUpDown numericTimerInterval;
286 private System.Windows.Forms.Label label4;
287 private System.Windows.Forms.CheckBox checkBoxRandomEq;