1 namespace CLEON_Connector
8 private System.ComponentModel.IContainer components = null;
14 protected override void Dispose(
bool disposing)
16 if (disposing && (components != null))
20 base.Dispose(disposing);
23 #region Windows Form Designer generated code
29 private void InitializeComponent()
31 this.components =
new System.ComponentModel.Container();
32 System.ComponentModel.ComponentResourceManager resources =
new System.ComponentModel.ComponentResourceManager(typeof(
Form1));
33 this.button_connect =
new System.Windows.Forms.Button();
34 this.comboBox_availableComPort =
new System.Windows.Forms.ComboBox();
35 this.groupBox_connection =
new System.Windows.Forms.GroupBox();
36 this.button_updateCLEON =
new System.Windows.Forms.Button();
37 this.groupBox_time =
new System.Windows.Forms.GroupBox();
38 this.label_currentTimeTick =
new System.Windows.Forms.Label();
39 this.label_currentTime =
new System.Windows.Forms.Label();
40 this.label_currentUTCTimeTick =
new System.Windows.Forms.Label();
41 this.label_currentTimeInfo =
new System.Windows.Forms.Label();
42 this.serialPort1 =
new System.IO.Ports.SerialPort(this.components);
43 this.timer_currentTime =
new System.Windows.Forms.Timer(this.components);
44 this.toolTip1 =
new System.Windows.Forms.ToolTip(this.components);
45 this.pictureBox1 =
new System.Windows.Forms.PictureBox();
46 this.label_numberOfSamples =
new System.Windows.Forms.Label();
47 this.statusStrip =
new System.Windows.Forms.StatusStrip();
48 this.toolStripStatusLabel =
new System.Windows.Forms.ToolStripStatusLabel();
49 this.groupBox_parameter =
new System.Windows.Forms.GroupBox();
50 this.textBox_batteryCapacity =
new System.Windows.Forms.TextBox();
51 this.label_batteryCapacity =
new System.Windows.Forms.Label();
52 this.textBox_chunkGap =
new System.Windows.Forms.TextBox();
53 this.label_chunkGap =
new System.Windows.Forms.Label();
54 this.textBox_ChunkCount =
new System.Windows.Forms.TextBox();
55 this.textBox_sampleGap =
new System.Windows.Forms.TextBox();
56 this.label_numberOfChunksInASample =
new System.Windows.Forms.Label();
57 this.label_sampleGap =
new System.Windows.Forms.Label();
58 this.textBox_SampleCount =
new System.Windows.Forms.TextBox();
59 this.groupBox_connection.SuspendLayout();
60 this.groupBox_time.SuspendLayout();
61 ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
62 this.statusStrip.SuspendLayout();
63 this.groupBox_parameter.SuspendLayout();
68 this.button_connect.Location =
new System.Drawing.Point(150, 17);
69 this.button_connect.Name =
"button_connect";
70 this.button_connect.Size =
new System.Drawing.Size(109, 23);
71 this.button_connect.TabIndex = 0;
72 this.button_connect.Text =
"Connect";
73 this.button_connect.UseVisualStyleBackColor =
true;
74 this.button_connect.Click +=
new System.EventHandler(this.button_Connect_Click);
78 this.comboBox_availableComPort.FormattingEnabled =
true;
79 this.comboBox_availableComPort.Location =
new System.Drawing.Point(6, 20);
80 this.comboBox_availableComPort.Name =
"comboBox_availableComPort";
81 this.comboBox_availableComPort.Size =
new System.Drawing.Size(138, 20);
82 this.comboBox_availableComPort.TabIndex = 1;
83 this.toolTip1.SetToolTip(this.comboBox_availableComPort,
"Select a COM port that CLEON is connected");
87 this.groupBox_connection.Controls.Add(this.button_connect);
88 this.groupBox_connection.Controls.Add(this.comboBox_availableComPort);
89 this.groupBox_connection.Location =
new System.Drawing.Point(12, 12);
90 this.groupBox_connection.Name =
"groupBox_connection";
91 this.groupBox_connection.Size =
new System.Drawing.Size(265, 52);
92 this.groupBox_connection.TabIndex = 2;
93 this.groupBox_connection.TabStop =
false;
94 this.groupBox_connection.Text =
"Connection";
98 this.button_updateCLEON.Enabled =
false;
99 this.button_updateCLEON.Location =
new System.Drawing.Point(12, 481);
100 this.button_updateCLEON.Name =
"button_updateCLEON";
101 this.button_updateCLEON.Size =
new System.Drawing.Size(265, 23);
102 this.button_updateCLEON.TabIndex = 3;
103 this.button_updateCLEON.Text =
"Connect to CLEON (1/3)";
104 this.toolTip1.SetToolTip(this.button_updateCLEON,
"Update CLEON\'s time and parameters");
105 this.button_updateCLEON.UseVisualStyleBackColor =
true;
106 this.button_updateCLEON.Click +=
new System.EventHandler(this.button_updateCLEON_Click);
110 this.groupBox_time.Controls.Add(this.label_currentTimeTick);
111 this.groupBox_time.Controls.Add(this.label_currentTime);
112 this.groupBox_time.Controls.Add(this.label_currentUTCTimeTick);
113 this.groupBox_time.Controls.Add(this.label_currentTimeInfo);
114 this.groupBox_time.Location =
new System.Drawing.Point(12, 70);
115 this.groupBox_time.Name =
"groupBox_time";
116 this.groupBox_time.Size =
new System.Drawing.Size(265, 129);
117 this.groupBox_time.TabIndex = 4;
118 this.groupBox_time.TabStop =
false;
119 this.groupBox_time.Text =
"Time";
123 this.label_currentTimeTick.AutoSize =
true;
124 this.label_currentTimeTick.Location =
new System.Drawing.Point(6, 105);
125 this.label_currentTimeTick.Name =
"label_currentTimeTick";
126 this.label_currentTimeTick.Size =
new System.Drawing.Size(49, 12);
127 this.label_currentTimeTick.TabIndex = 9;
128 this.label_currentTimeTick.Text =
"00:00:00";
132 this.label_currentTime.AutoSize =
true;
133 this.label_currentTime.Location =
new System.Drawing.Point(6, 55);
134 this.label_currentTime.Name =
"label_currentTime";
135 this.label_currentTime.Size =
new System.Drawing.Size(49, 12);
136 this.label_currentTime.TabIndex = 8;
137 this.label_currentTime.Text =
"00:00:00";
141 this.label_currentUTCTimeTick.AutoSize =
true;
142 this.label_currentUTCTimeTick.Location =
new System.Drawing.Point(6, 80);
143 this.label_currentUTCTimeTick.Name =
"label_currentUTCTimeTick";
144 this.label_currentUTCTimeTick.Size =
new System.Drawing.Size(126, 12);
145 this.label_currentUTCTimeTick.TabIndex = 7;
146 this.label_currentUTCTimeTick.Text =
"Current UTC time tick";
150 this.label_currentTimeInfo.AutoSize =
true;
151 this.label_currentTimeInfo.Location =
new System.Drawing.Point(6, 30);
152 this.label_currentTimeInfo.Name =
"label_currentTimeInfo";
153 this.label_currentTimeInfo.Size =
new System.Drawing.Size(74, 12);
154 this.label_currentTimeInfo.TabIndex = 6;
155 this.label_currentTimeInfo.Text =
"Current time";
159 this.serialPort1.BaudRate = 57600;
160 this.serialPort1.PortName =
"COM9";
164 this.timer_currentTime.Enabled =
true;
165 this.timer_currentTime.Interval = 1;
166 this.timer_currentTime.Tick +=
new System.EventHandler(this.Timer_Tick);
170 this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
171 | System.Windows.Forms.AnchorStyles.Left)
172 | System.Windows.Forms.AnchorStyles.Right)));
173 this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject(
"pictureBox1.Image")));
174 this.pictureBox1.InitialImage = ((System.Drawing.Image)(resources.GetObject(
"pictureBox1.InitialImage")));
175 this.pictureBox1.Location =
new System.Drawing.Point(236, 16);
176 this.pictureBox1.Name =
"pictureBox1";
177 this.pictureBox1.Size =
new System.Drawing.Size(23, 22);
178 this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
179 this.pictureBox1.TabIndex = 8;
180 this.pictureBox1.TabStop =
false;
181 this.toolTip1.SetToolTip(this.pictureBox1,
"Click to see the explanation");
182 this.pictureBox1.MouseClick +=
new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseClick);
186 this.label_numberOfSamples.AutoSize =
true;
187 this.label_numberOfSamples.Location =
new System.Drawing.Point(6, 29);
188 this.label_numberOfSamples.Name =
"label_numberOfSamples";
189 this.label_numberOfSamples.Size =
new System.Drawing.Size(224, 12);
190 this.label_numberOfSamples.TabIndex = 0;
191 this.label_numberOfSamples.Text =
"Sample count (\'1\' means on-demand)";
192 this.toolTip1.SetToolTip(this.label_numberOfSamples,
"\'1\' means collecting on demand");
196 this.statusStrip.Items.AddRange(
new System.Windows.Forms.ToolStripItem[] {
197 this.toolStripStatusLabel});
198 this.statusStrip.Location =
new System.Drawing.Point(0, 517);
199 this.statusStrip.Name =
"statusStrip";
200 this.statusStrip.Size =
new System.Drawing.Size(289, 22);
201 this.statusStrip.TabIndex = 6;
202 this.statusStrip.Text =
"statusStrip";
206 this.toolStripStatusLabel.Name =
"toolStripStatusLabel";
207 this.toolStripStatusLabel.Size =
new System.Drawing.Size(39, 17);
208 this.toolStripStatusLabel.Text =
"Ready";
212 this.groupBox_parameter.Controls.Add(this.textBox_batteryCapacity);
213 this.groupBox_parameter.Controls.Add(this.label_batteryCapacity);
214 this.groupBox_parameter.Controls.Add(this.pictureBox1);
215 this.groupBox_parameter.Controls.Add(this.textBox_chunkGap);
216 this.groupBox_parameter.Controls.Add(this.label_chunkGap);
217 this.groupBox_parameter.Controls.Add(this.textBox_ChunkCount);
218 this.groupBox_parameter.Controls.Add(this.textBox_sampleGap);
219 this.groupBox_parameter.Controls.Add(this.label_numberOfChunksInASample);
220 this.groupBox_parameter.Controls.Add(this.label_sampleGap);
221 this.groupBox_parameter.Controls.Add(this.textBox_SampleCount);
222 this.groupBox_parameter.Controls.Add(this.label_numberOfSamples);
223 this.groupBox_parameter.Location =
new System.Drawing.Point(12, 205);
224 this.groupBox_parameter.Name =
"groupBox_parameter";
225 this.groupBox_parameter.Size =
new System.Drawing.Size(265, 265);
226 this.groupBox_parameter.TabIndex = 7;
227 this.groupBox_parameter.TabStop =
false;
228 this.groupBox_parameter.Text =
"Parameters";
232 this.textBox_batteryCapacity.Location =
new System.Drawing.Point(8, 236);
233 this.textBox_batteryCapacity.Name =
"textBox_batteryCapacity";
234 this.textBox_batteryCapacity.Size =
new System.Drawing.Size(251, 21);
235 this.textBox_batteryCapacity.TabIndex = 10;
236 this.textBox_batteryCapacity.Text =
"850";
237 this.textBox_batteryCapacity.TextChanged +=
new System.EventHandler(this.textBox_batteryCapacity_TextChanged);
241 this.label_batteryCapacity.AutoSize =
true;
242 this.label_batteryCapacity.Location =
new System.Drawing.Point(6, 221);
243 this.label_batteryCapacity.Name =
"label_batteryCapacity";
244 this.label_batteryCapacity.Size =
new System.Drawing.Size(136, 12);
245 this.label_batteryCapacity.TabIndex = 9;
246 this.label_batteryCapacity.Text =
"Battery capacity (mAh)";
250 this.textBox_chunkGap.Location =
new System.Drawing.Point(8, 188);
251 this.textBox_chunkGap.Name =
"textBox_chunkGap";
252 this.textBox_chunkGap.Size =
new System.Drawing.Size(251, 21);
253 this.textBox_chunkGap.TabIndex = 7;
254 this.textBox_chunkGap.Text =
"50";
255 this.textBox_chunkGap.TextChanged +=
new System.EventHandler(this.textBox_chunkGap_TextChanged);
259 this.label_chunkGap.AutoSize =
true;
260 this.label_chunkGap.Location =
new System.Drawing.Point(6, 173);
261 this.label_chunkGap.Name =
"label_chunkGap";
262 this.label_chunkGap.Size =
new System.Drawing.Size(98, 12);
263 this.label_chunkGap.TabIndex = 6;
264 this.label_chunkGap.Text =
"Chunk gap (ms)";
265 this.toolTip1.SetToolTip(this.label_chunkGap,
"Minimum chunk gap is 50 ms");
269 this.textBox_ChunkCount.Location =
new System.Drawing.Point(8, 140);
270 this.textBox_ChunkCount.Name =
"textBox_ChunkCount";
271 this.textBox_ChunkCount.Size =
new System.Drawing.Size(251, 21);
272 this.textBox_ChunkCount.TabIndex = 5;
273 this.textBox_ChunkCount.Text =
"5";
274 this.textBox_ChunkCount.TextChanged +=
new System.EventHandler(this.textBox_numberOfChunks_TextChanged);
278 this.textBox_sampleGap.Location =
new System.Drawing.Point(8, 92);
279 this.textBox_sampleGap.Name =
"textBox_sampleGap";
280 this.textBox_sampleGap.Size =
new System.Drawing.Size(251, 21);
281 this.textBox_sampleGap.TabIndex = 4;
282 this.textBox_sampleGap.Text =
"3000";
283 this.textBox_sampleGap.TextChanged +=
new System.EventHandler(this.textBox_sampleGap_TextChanged);
287 this.label_numberOfChunksInASample.AutoSize =
true;
288 this.label_numberOfChunksInASample.Location =
new System.Drawing.Point(6, 125);
289 this.label_numberOfChunksInASample.Name =
"label_numberOfChunksInASample";
290 this.label_numberOfChunksInASample.Size =
new System.Drawing.Size(157, 12);
291 this.label_numberOfChunksInASample.TabIndex = 3;
292 this.label_numberOfChunksInASample.Text =
"Chunk count (in a sample)";
296 this.label_sampleGap.AutoSize =
true;
297 this.label_sampleGap.Location =
new System.Drawing.Point(6, 77);
298 this.label_sampleGap.Name =
"label_sampleGap";
299 this.label_sampleGap.Size =
new System.Drawing.Size(105, 12);
300 this.label_sampleGap.TabIndex = 2;
301 this.label_sampleGap.Text =
"Sample gap (ms)";
302 this.toolTip1.SetToolTip(this.label_sampleGap,
"It should be multiple of 1000");
306 this.textBox_SampleCount.Location =
new System.Drawing.Point(8, 44);
307 this.textBox_SampleCount.Name =
"textBox_SampleCount";
308 this.textBox_SampleCount.Size =
new System.Drawing.Size(253, 21);
309 this.textBox_SampleCount.TabIndex = 1;
310 this.textBox_SampleCount.Text =
"1";
311 this.textBox_SampleCount.TextChanged +=
new System.EventHandler(this.textBox_numberOfSamples_TextChanged);
315 this.AutoScaleDimensions =
new System.Drawing.SizeF(7F, 12F);
316 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
317 this.ClientSize =
new System.Drawing.Size(289, 539);
318 this.Controls.Add(this.groupBox_parameter);
319 this.Controls.Add(this.statusStrip);
320 this.Controls.Add(this.groupBox_time);
321 this.Controls.Add(this.groupBox_connection);
322 this.Controls.Add(this.button_updateCLEON);
324 this.Text =
"CLEON Connector";
325 this.Load +=
new System.EventHandler(this.Form1_Load);
326 this.groupBox_connection.ResumeLayout(
false);
327 this.groupBox_time.ResumeLayout(
false);
328 this.groupBox_time.PerformLayout();
329 ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
330 this.statusStrip.ResumeLayout(
false);
331 this.statusStrip.PerformLayout();
332 this.groupBox_parameter.ResumeLayout(
false);
333 this.groupBox_parameter.PerformLayout();
334 this.ResumeLayout(
false);
335 this.PerformLayout();
341 private System.Windows.Forms.Button button_connect;
342 private System.Windows.Forms.ComboBox comboBox_availableComPort;
343 private System.Windows.Forms.GroupBox groupBox_connection;
344 private System.Windows.Forms.Button button_updateCLEON;
345 private System.Windows.Forms.GroupBox groupBox_time;
346 private System.Windows.Forms.Label label_currentTimeInfo;
347 private System.IO.Ports.SerialPort serialPort1;
348 private System.Windows.Forms.Label label_currentUTCTimeTick;
349 private System.Windows.Forms.Label label_currentTimeTick;
350 private System.Windows.Forms.Label label_currentTime;
351 private System.Windows.Forms.Timer timer_currentTime;
352 private System.Windows.Forms.ToolTip toolTip1;
353 private System.Windows.Forms.StatusStrip statusStrip;
354 private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel;
355 private System.Windows.Forms.GroupBox groupBox_parameter;
356 private System.Windows.Forms.Label label_numberOfSamples;
357 private System.Windows.Forms.TextBox textBox_SampleCount;
358 private System.Windows.Forms.Label label_numberOfChunksInASample;
359 private System.Windows.Forms.Label label_sampleGap;
360 private System.Windows.Forms.TextBox textBox_sampleGap;
361 private System.Windows.Forms.TextBox textBox_chunkGap;
362 private System.Windows.Forms.Label label_chunkGap;
363 private System.Windows.Forms.TextBox textBox_ChunkCount;
364 private System.Windows.Forms.PictureBox pictureBox1;
365 private System.Windows.Forms.TextBox textBox_batteryCapacity;
366 private System.Windows.Forms.Label label_batteryCapacity;