|
@@ -28,17 +28,28 @@
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
private void InitializeComponent()
|
|
private void InitializeComponent()
|
|
|
{
|
|
{
|
|
|
|
|
+ System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
|
|
|
|
|
+ System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend();
|
|
|
|
|
+ System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series();
|
|
|
this.button1 = new System.Windows.Forms.Button();
|
|
this.button1 = new System.Windows.Forms.Button();
|
|
|
this.textBox1 = new System.Windows.Forms.TextBox();
|
|
this.textBox1 = new System.Windows.Forms.TextBox();
|
|
|
this.button2 = new System.Windows.Forms.Button();
|
|
this.button2 = new System.Windows.Forms.Button();
|
|
|
this.button3 = new System.Windows.Forms.Button();
|
|
this.button3 = new System.Windows.Forms.Button();
|
|
|
|
|
+ this.checkedListBox1 = new System.Windows.Forms.CheckedListBox();
|
|
|
|
|
+ this.comboBox1 = new System.Windows.Forms.ComboBox();
|
|
|
|
|
+ this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
|
|
|
|
+ this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
|
|
+ this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
|
|
|
|
|
+ this.menuStrip1.SuspendLayout();
|
|
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
|
|
|
this.SuspendLayout();
|
|
this.SuspendLayout();
|
|
|
//
|
|
//
|
|
|
// button1
|
|
// button1
|
|
|
//
|
|
//
|
|
|
- this.button1.Location = new System.Drawing.Point(12, 12);
|
|
|
|
|
|
|
+ this.button1.Location = new System.Drawing.Point(13, 48);
|
|
|
|
|
+ this.button1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
|
this.button1.Name = "button1";
|
|
this.button1.Name = "button1";
|
|
|
- this.button1.Size = new System.Drawing.Size(75, 23);
|
|
|
|
|
|
|
+ this.button1.Size = new System.Drawing.Size(135, 28);
|
|
|
this.button1.TabIndex = 0;
|
|
this.button1.TabIndex = 0;
|
|
|
this.button1.Text = "init comport";
|
|
this.button1.Text = "init comport";
|
|
|
this.button1.UseVisualStyleBackColor = true;
|
|
this.button1.UseVisualStyleBackColor = true;
|
|
@@ -48,18 +59,20 @@
|
|
|
//
|
|
//
|
|
|
this.textBox1.BackColor = System.Drawing.Color.Black;
|
|
this.textBox1.BackColor = System.Drawing.Color.Black;
|
|
|
this.textBox1.ForeColor = System.Drawing.Color.White;
|
|
this.textBox1.ForeColor = System.Drawing.Color.White;
|
|
|
- this.textBox1.Location = new System.Drawing.Point(12, 187);
|
|
|
|
|
|
|
+ this.textBox1.Location = new System.Drawing.Point(13, 425);
|
|
|
|
|
+ this.textBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
|
this.textBox1.Multiline = true;
|
|
this.textBox1.Multiline = true;
|
|
|
this.textBox1.Name = "textBox1";
|
|
this.textBox1.Name = "textBox1";
|
|
|
this.textBox1.ReadOnly = true;
|
|
this.textBox1.ReadOnly = true;
|
|
|
- this.textBox1.Size = new System.Drawing.Size(806, 142);
|
|
|
|
|
|
|
+ this.textBox1.Size = new System.Drawing.Size(1033, 201);
|
|
|
this.textBox1.TabIndex = 1;
|
|
this.textBox1.TabIndex = 1;
|
|
|
//
|
|
//
|
|
|
// button2
|
|
// button2
|
|
|
//
|
|
//
|
|
|
- this.button2.Location = new System.Drawing.Point(12, 42);
|
|
|
|
|
|
|
+ this.button2.Location = new System.Drawing.Point(13, 316);
|
|
|
|
|
+ this.button2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
|
this.button2.Name = "button2";
|
|
this.button2.Name = "button2";
|
|
|
- this.button2.Size = new System.Drawing.Size(118, 23);
|
|
|
|
|
|
|
+ this.button2.Size = new System.Drawing.Size(278, 66);
|
|
|
this.button2.TabIndex = 2;
|
|
this.button2.TabIndex = 2;
|
|
|
this.button2.Text = "start asking for status";
|
|
this.button2.Text = "start asking for status";
|
|
|
this.button2.UseVisualStyleBackColor = true;
|
|
this.button2.UseVisualStyleBackColor = true;
|
|
@@ -67,26 +80,95 @@
|
|
|
//
|
|
//
|
|
|
// button3
|
|
// button3
|
|
|
//
|
|
//
|
|
|
- this.button3.Location = new System.Drawing.Point(94, 13);
|
|
|
|
|
|
|
+ this.button3.Location = new System.Drawing.Point(13, 84);
|
|
|
|
|
+ this.button3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
|
this.button3.Name = "button3";
|
|
this.button3.Name = "button3";
|
|
|
- this.button3.Size = new System.Drawing.Size(88, 23);
|
|
|
|
|
|
|
+ this.button3.Size = new System.Drawing.Size(135, 28);
|
|
|
this.button3.TabIndex = 3;
|
|
this.button3.TabIndex = 3;
|
|
|
this.button3.Text = "close comport";
|
|
this.button3.Text = "close comport";
|
|
|
this.button3.UseVisualStyleBackColor = true;
|
|
this.button3.UseVisualStyleBackColor = true;
|
|
|
this.button3.Click += new System.EventHandler(this.button3_Click);
|
|
this.button3.Click += new System.EventHandler(this.button3_Click);
|
|
|
//
|
|
//
|
|
|
|
|
+ // checkedListBox1
|
|
|
|
|
+ //
|
|
|
|
|
+ this.checkedListBox1.FormattingEnabled = true;
|
|
|
|
|
+ this.checkedListBox1.Items.AddRange(new object[] {
|
|
|
|
|
+ "pulse",
|
|
|
|
|
+ "rpm",
|
|
|
|
|
+ "speed",
|
|
|
|
|
+ "distance",
|
|
|
|
|
+ "requestedpower",
|
|
|
|
|
+ "energy",
|
|
|
|
|
+ "time",
|
|
|
|
|
+ "actualpower"});
|
|
|
|
|
+ this.checkedListBox1.Location = new System.Drawing.Point(13, 141);
|
|
|
|
|
+ this.checkedListBox1.Name = "checkedListBox1";
|
|
|
|
|
+ this.checkedListBox1.Size = new System.Drawing.Size(278, 140);
|
|
|
|
|
+ this.checkedListBox1.TabIndex = 4;
|
|
|
|
|
+ //
|
|
|
|
|
+ // comboBox1
|
|
|
|
|
+ //
|
|
|
|
|
+ this.comboBox1.FormattingEnabled = true;
|
|
|
|
|
+ this.comboBox1.Location = new System.Drawing.Point(155, 51);
|
|
|
|
|
+ this.comboBox1.Name = "comboBox1";
|
|
|
|
|
+ this.comboBox1.Size = new System.Drawing.Size(121, 24);
|
|
|
|
|
+ this.comboBox1.TabIndex = 5;
|
|
|
|
|
+ //
|
|
|
|
|
+ // menuStrip1
|
|
|
|
|
+ //
|
|
|
|
|
+ this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
|
|
|
|
|
+ this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
|
|
|
+ this.helpToolStripMenuItem});
|
|
|
|
|
+ this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
|
|
|
|
+ this.menuStrip1.Name = "menuStrip1";
|
|
|
|
|
+ this.menuStrip1.Size = new System.Drawing.Size(1059, 28);
|
|
|
|
|
+ this.menuStrip1.TabIndex = 6;
|
|
|
|
|
+ this.menuStrip1.Text = "menuStrip1";
|
|
|
|
|
+ //
|
|
|
|
|
+ // helpToolStripMenuItem
|
|
|
|
|
+ //
|
|
|
|
|
+ this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
|
|
|
|
|
+ this.helpToolStripMenuItem.Size = new System.Drawing.Size(53, 24);
|
|
|
|
|
+ this.helpToolStripMenuItem.Text = "Help";
|
|
|
|
|
+ //
|
|
|
|
|
+ // chart1
|
|
|
|
|
+ //
|
|
|
|
|
+ chartArea1.Name = "ChartArea1";
|
|
|
|
|
+ this.chart1.ChartAreas.Add(chartArea1);
|
|
|
|
|
+ legend1.Name = "Legend1";
|
|
|
|
|
+ this.chart1.Legends.Add(legend1);
|
|
|
|
|
+ this.chart1.Location = new System.Drawing.Point(316, 48);
|
|
|
|
|
+ this.chart1.Name = "chart1";
|
|
|
|
|
+ series1.ChartArea = "ChartArea1";
|
|
|
|
|
+ series1.Legend = "Legend1";
|
|
|
|
|
+ series1.Name = "Series1";
|
|
|
|
|
+ this.chart1.Series.Add(series1);
|
|
|
|
|
+ this.chart1.Size = new System.Drawing.Size(730, 358);
|
|
|
|
|
+ this.chart1.TabIndex = 7;
|
|
|
|
|
+ this.chart1.Text = "chart1";
|
|
|
|
|
+ this.chart1.Click += new System.EventHandler(this.chart1_Click);
|
|
|
|
|
+ //
|
|
|
// MainForm
|
|
// MainForm
|
|
|
//
|
|
//
|
|
|
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
|
|
|
|
|
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
this.AutoScroll = true;
|
|
this.AutoScroll = true;
|
|
|
- this.ClientSize = new System.Drawing.Size(830, 343);
|
|
|
|
|
|
|
+ this.ClientSize = new System.Drawing.Size(1059, 639);
|
|
|
|
|
+ this.Controls.Add(this.chart1);
|
|
|
|
|
+ this.Controls.Add(this.comboBox1);
|
|
|
|
|
+ this.Controls.Add(this.checkedListBox1);
|
|
|
this.Controls.Add(this.button3);
|
|
this.Controls.Add(this.button3);
|
|
|
this.Controls.Add(this.button2);
|
|
this.Controls.Add(this.button2);
|
|
|
this.Controls.Add(this.textBox1);
|
|
this.Controls.Add(this.textBox1);
|
|
|
this.Controls.Add(this.button1);
|
|
this.Controls.Add(this.button1);
|
|
|
|
|
+ this.Controls.Add(this.menuStrip1);
|
|
|
|
|
+ this.MainMenuStrip = this.menuStrip1;
|
|
|
|
|
+ this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
|
this.Name = "MainForm";
|
|
this.Name = "MainForm";
|
|
|
this.Text = "Form1";
|
|
this.Text = "Form1";
|
|
|
|
|
+ this.menuStrip1.ResumeLayout(false);
|
|
|
|
|
+ this.menuStrip1.PerformLayout();
|
|
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
|
|
|
this.ResumeLayout(false);
|
|
this.ResumeLayout(false);
|
|
|
this.PerformLayout();
|
|
this.PerformLayout();
|
|
|
|
|
|
|
@@ -98,6 +180,11 @@
|
|
|
private System.Windows.Forms.TextBox textBox1;
|
|
private System.Windows.Forms.TextBox textBox1;
|
|
|
private System.Windows.Forms.Button button2;
|
|
private System.Windows.Forms.Button button2;
|
|
|
private System.Windows.Forms.Button button3;
|
|
private System.Windows.Forms.Button button3;
|
|
|
|
|
+ private System.Windows.Forms.CheckedListBox checkedListBox1;
|
|
|
|
|
+ private System.Windows.Forms.ComboBox comboBox1;
|
|
|
|
|
+ private System.Windows.Forms.MenuStrip menuStrip1;
|
|
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem;
|
|
|
|
|
+ private System.Windows.Forms.DataVisualization.Charting.Chart chart1;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|