|
|
@@ -28,162 +28,222 @@
|
|
|
/// </summary>
|
|
|
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();
|
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
|
|
- this.textBox1 = new System.Windows.Forms.TextBox();
|
|
|
- this.button2 = new System.Windows.Forms.Button();
|
|
|
- this.button3 = new System.Windows.Forms.Button();
|
|
|
- this.checkedListBox1 = new System.Windows.Forms.CheckedListBox();
|
|
|
- this.cmbComport = new System.Windows.Forms.ComboBox();
|
|
|
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
|
|
+ this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
+ this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
+ this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
+ this.closeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
+ this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
+ this.setingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
+ this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
+ this.graphToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
+ this.chatToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
+ this.consoleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
- this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
|
|
|
- this.pgbComport = new System.Windows.Forms.ProgressBar();
|
|
|
+ this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
+ this.moreToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
+ this.debugToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
+ this.ucConsole1 = new Fietsclient.User_Controls.UcConsole();
|
|
|
+ this.ucSettings1 = new Fietsclient.User_Controls.UcSettings();
|
|
|
+ this.ucGraph1 = new Fietsclient.User_Controls.UcGraph();
|
|
|
+ this.ucChat1 = new Fietsclient.User_Controls.UcChat();
|
|
|
this.menuStrip1.SuspendLayout();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
|
|
|
this.SuspendLayout();
|
|
|
//
|
|
|
- // textBox1
|
|
|
- //
|
|
|
- this.textBox1.BackColor = System.Drawing.Color.Black;
|
|
|
- this.textBox1.ForeColor = System.Drawing.Color.White;
|
|
|
- this.textBox1.Location = new System.Drawing.Point(10, 345);
|
|
|
- this.textBox1.Multiline = true;
|
|
|
- this.textBox1.Name = "textBox1";
|
|
|
- this.textBox1.ReadOnly = true;
|
|
|
- this.textBox1.Size = new System.Drawing.Size(776, 164);
|
|
|
- this.textBox1.TabIndex = 1;
|
|
|
- //
|
|
|
- // button2
|
|
|
- //
|
|
|
- this.button2.Location = new System.Drawing.Point(10, 229);
|
|
|
- this.button2.Name = "button2";
|
|
|
- this.button2.Size = new System.Drawing.Size(210, 101);
|
|
|
- this.button2.TabIndex = 2;
|
|
|
- this.button2.Text = "start asking for status";
|
|
|
- this.button2.UseVisualStyleBackColor = true;
|
|
|
- this.button2.Click += new System.EventHandler(this.button2_Click);
|
|
|
- //
|
|
|
- // button3
|
|
|
- //
|
|
|
- this.button3.BackColor = System.Drawing.SystemColors.ControlLight;
|
|
|
- this.button3.Location = new System.Drawing.Point(119, 39);
|
|
|
- this.button3.Name = "button3";
|
|
|
- this.button3.Size = new System.Drawing.Size(101, 23);
|
|
|
- this.button3.TabIndex = 3;
|
|
|
- this.button3.Text = "close comport";
|
|
|
- this.button3.UseVisualStyleBackColor = false;
|
|
|
- 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(10, 100);
|
|
|
- this.checkedListBox1.Margin = new System.Windows.Forms.Padding(2);
|
|
|
- this.checkedListBox1.Name = "checkedListBox1";
|
|
|
- this.checkedListBox1.Size = new System.Drawing.Size(210, 124);
|
|
|
- this.checkedListBox1.TabIndex = 4;
|
|
|
- //
|
|
|
- // cmbComport
|
|
|
- //
|
|
|
- this.cmbComport.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
- this.cmbComport.FormattingEnabled = true;
|
|
|
- this.cmbComport.Location = new System.Drawing.Point(11, 39);
|
|
|
- this.cmbComport.Margin = new System.Windows.Forms.Padding(2);
|
|
|
- this.cmbComport.Name = "cmbComport";
|
|
|
- this.cmbComport.Size = new System.Drawing.Size(100, 21);
|
|
|
- this.cmbComport.TabIndex = 5;
|
|
|
- this.cmbComport.SelectionChangeCommitted += new System.EventHandler(this.cmbComport_SelectionChangeCommitted);
|
|
|
- //
|
|
|
// menuStrip1
|
|
|
//
|
|
|
this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
|
|
|
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
|
- this.helpToolStripMenuItem});
|
|
|
+ this.fileToolStripMenuItem,
|
|
|
+ this.editToolStripMenuItem,
|
|
|
+ this.viewToolStripMenuItem,
|
|
|
+ this.helpToolStripMenuItem,
|
|
|
+ this.debugToolStripMenuItem});
|
|
|
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
|
|
this.menuStrip1.Name = "menuStrip1";
|
|
|
- this.menuStrip1.Padding = new System.Windows.Forms.Padding(4, 2, 0, 2);
|
|
|
- this.menuStrip1.Size = new System.Drawing.Size(794, 24);
|
|
|
- this.menuStrip1.TabIndex = 6;
|
|
|
+ this.menuStrip1.Size = new System.Drawing.Size(1059, 28);
|
|
|
+ this.menuStrip1.TabIndex = 0;
|
|
|
this.menuStrip1.Text = "menuStrip1";
|
|
|
//
|
|
|
+ // fileToolStripMenuItem
|
|
|
+ //
|
|
|
+ this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
|
+ this.openToolStripMenuItem,
|
|
|
+ this.saveToolStripMenuItem,
|
|
|
+ this.closeToolStripMenuItem});
|
|
|
+ this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
|
|
|
+ this.fileToolStripMenuItem.Size = new System.Drawing.Size(44, 24);
|
|
|
+ this.fileToolStripMenuItem.Text = "File";
|
|
|
+ //
|
|
|
+ // openToolStripMenuItem
|
|
|
+ //
|
|
|
+ this.openToolStripMenuItem.Name = "openToolStripMenuItem";
|
|
|
+ this.openToolStripMenuItem.Size = new System.Drawing.Size(124, 26);
|
|
|
+ this.openToolStripMenuItem.Text = "Open ";
|
|
|
+ //
|
|
|
+ // saveToolStripMenuItem
|
|
|
+ //
|
|
|
+ this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
|
|
|
+ this.saveToolStripMenuItem.Size = new System.Drawing.Size(124, 26);
|
|
|
+ this.saveToolStripMenuItem.Text = "Save";
|
|
|
+ //
|
|
|
+ // closeToolStripMenuItem
|
|
|
+ //
|
|
|
+ this.closeToolStripMenuItem.Name = "closeToolStripMenuItem";
|
|
|
+ this.closeToolStripMenuItem.Size = new System.Drawing.Size(124, 26);
|
|
|
+ this.closeToolStripMenuItem.Text = "Close";
|
|
|
+ //
|
|
|
+ // editToolStripMenuItem
|
|
|
+ //
|
|
|
+ this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
|
+ this.setingsToolStripMenuItem});
|
|
|
+ this.editToolStripMenuItem.Name = "editToolStripMenuItem";
|
|
|
+ this.editToolStripMenuItem.Size = new System.Drawing.Size(47, 24);
|
|
|
+ this.editToolStripMenuItem.Text = "Edit";
|
|
|
+ //
|
|
|
+ // setingsToolStripMenuItem
|
|
|
+ //
|
|
|
+ this.setingsToolStripMenuItem.Name = "setingsToolStripMenuItem";
|
|
|
+ this.setingsToolStripMenuItem.Size = new System.Drawing.Size(181, 26);
|
|
|
+ this.setingsToolStripMenuItem.Text = "Settings";
|
|
|
+ this.setingsToolStripMenuItem.Click += new System.EventHandler(this.setingsToolStripMenuItem_Click);
|
|
|
+ //
|
|
|
+ // viewToolStripMenuItem
|
|
|
+ //
|
|
|
+ this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
|
+ this.graphToolStripMenuItem,
|
|
|
+ this.chatToolStripMenuItem,
|
|
|
+ this.consoleToolStripMenuItem});
|
|
|
+ this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";
|
|
|
+ this.viewToolStripMenuItem.Size = new System.Drawing.Size(53, 24);
|
|
|
+ this.viewToolStripMenuItem.Text = "View";
|
|
|
+ //
|
|
|
+ // graphToolStripMenuItem
|
|
|
+ //
|
|
|
+ this.graphToolStripMenuItem.Name = "graphToolStripMenuItem";
|
|
|
+ this.graphToolStripMenuItem.Size = new System.Drawing.Size(181, 26);
|
|
|
+ this.graphToolStripMenuItem.Text = "Graph";
|
|
|
+ this.graphToolStripMenuItem.Click += new System.EventHandler(this.graphToolStripMenuItem_Click);
|
|
|
+ //
|
|
|
+ // chatToolStripMenuItem
|
|
|
+ //
|
|
|
+ this.chatToolStripMenuItem.Name = "chatToolStripMenuItem";
|
|
|
+ this.chatToolStripMenuItem.Size = new System.Drawing.Size(181, 26);
|
|
|
+ this.chatToolStripMenuItem.Text = "Chat";
|
|
|
+ this.chatToolStripMenuItem.Click += new System.EventHandler(this.chatToolStripMenuItem_Click);
|
|
|
+ //
|
|
|
+ // consoleToolStripMenuItem
|
|
|
+ //
|
|
|
+ this.consoleToolStripMenuItem.Name = "consoleToolStripMenuItem";
|
|
|
+ this.consoleToolStripMenuItem.Size = new System.Drawing.Size(181, 26);
|
|
|
+ this.consoleToolStripMenuItem.Text = "Console";
|
|
|
+ this.consoleToolStripMenuItem.Click += new System.EventHandler(this.consoleToolStripMenuItem_Click);
|
|
|
+ //
|
|
|
// helpToolStripMenuItem
|
|
|
//
|
|
|
+ this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
|
+ this.aboutToolStripMenuItem,
|
|
|
+ this.moreToolStripMenuItem});
|
|
|
this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
|
|
|
- this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
|
|
|
+ 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(237, 39);
|
|
|
- this.chart1.Margin = new System.Windows.Forms.Padding(2);
|
|
|
- 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(548, 291);
|
|
|
- this.chart1.TabIndex = 7;
|
|
|
- this.chart1.Text = "chart1";
|
|
|
- //
|
|
|
- // pgbComport
|
|
|
- //
|
|
|
- this.pgbComport.Location = new System.Drawing.Point(13, 66);
|
|
|
- this.pgbComport.Name = "pgbComport";
|
|
|
- this.pgbComport.Size = new System.Drawing.Size(207, 23);
|
|
|
- this.pgbComport.TabIndex = 8;
|
|
|
+ // aboutToolStripMenuItem
|
|
|
+ //
|
|
|
+ this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
|
|
|
+ this.aboutToolStripMenuItem.Size = new System.Drawing.Size(152, 26);
|
|
|
+ this.aboutToolStripMenuItem.Text = "About";
|
|
|
+ //
|
|
|
+ // moreToolStripMenuItem
|
|
|
+ //
|
|
|
+ this.moreToolStripMenuItem.Name = "moreToolStripMenuItem";
|
|
|
+ this.moreToolStripMenuItem.Size = new System.Drawing.Size(152, 26);
|
|
|
+ this.moreToolStripMenuItem.Text = "View Help";
|
|
|
+ //
|
|
|
+ // debugToolStripMenuItem
|
|
|
+ //
|
|
|
+ this.debugToolStripMenuItem.Name = "debugToolStripMenuItem";
|
|
|
+ this.debugToolStripMenuItem.Size = new System.Drawing.Size(66, 24);
|
|
|
+ this.debugToolStripMenuItem.Text = "Debug";
|
|
|
+ //
|
|
|
+ // ucConsole1
|
|
|
+ //
|
|
|
+ this.ucConsole1.Location = new System.Drawing.Point(12, 31);
|
|
|
+ this.ucConsole1.Name = "ucConsole1";
|
|
|
+ this.ucConsole1.Size = new System.Drawing.Size(1035, 596);
|
|
|
+ this.ucConsole1.TabIndex = 1;
|
|
|
+ this.ucConsole1.Visible = false;
|
|
|
+ //
|
|
|
+ // ucSettings1
|
|
|
+ //
|
|
|
+ this.ucSettings1.Location = new System.Drawing.Point(12, 31);
|
|
|
+ this.ucSettings1.Name = "ucSettings1";
|
|
|
+ this.ucSettings1.Size = new System.Drawing.Size(1035, 596);
|
|
|
+ this.ucSettings1.TabIndex = 2;
|
|
|
+ this.ucSettings1.Visible = false;
|
|
|
+ //
|
|
|
+ // ucGraph1
|
|
|
+ //
|
|
|
+ this.ucGraph1.Location = new System.Drawing.Point(12, 31);
|
|
|
+ this.ucGraph1.Name = "ucGraph1";
|
|
|
+ this.ucGraph1.Size = new System.Drawing.Size(1035, 596);
|
|
|
+ this.ucGraph1.TabIndex = 3;
|
|
|
+ this.ucGraph1.Visible = false;
|
|
|
+ //
|
|
|
+ // ucChat1
|
|
|
+ //
|
|
|
+ this.ucChat1.Location = new System.Drawing.Point(12, 31);
|
|
|
+ this.ucChat1.Name = "ucChat1";
|
|
|
+ this.ucChat1.Size = new System.Drawing.Size(1035, 596);
|
|
|
+ this.ucChat1.TabIndex = 4;
|
|
|
+ this.ucChat1.Visible = false;
|
|
|
//
|
|
|
// 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.AutoScroll = true;
|
|
|
- this.ClientSize = new System.Drawing.Size(794, 519);
|
|
|
- this.Controls.Add(this.pgbComport);
|
|
|
- this.Controls.Add(this.chart1);
|
|
|
- this.Controls.Add(this.cmbComport);
|
|
|
- this.Controls.Add(this.checkedListBox1);
|
|
|
- this.Controls.Add(this.button3);
|
|
|
- this.Controls.Add(this.button2);
|
|
|
- this.Controls.Add(this.textBox1);
|
|
|
+ this.ClientSize = new System.Drawing.Size(1059, 639);
|
|
|
+ this.Controls.Add(this.ucChat1);
|
|
|
+ this.Controls.Add(this.ucGraph1);
|
|
|
+ this.Controls.Add(this.ucSettings1);
|
|
|
+ this.Controls.Add(this.ucConsole1);
|
|
|
this.Controls.Add(this.menuStrip1);
|
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
|
- this.MainMenuStrip = this.menuStrip1;
|
|
|
+ this.Margin = new System.Windows.Forms.Padding(4);
|
|
|
this.Name = "MainForm";
|
|
|
this.Text = "Client";
|
|
|
this.menuStrip1.ResumeLayout(false);
|
|
|
this.menuStrip1.PerformLayout();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
|
|
|
this.ResumeLayout(false);
|
|
|
this.PerformLayout();
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
- private System.Windows.Forms.TextBox textBox1;
|
|
|
- private System.Windows.Forms.Button button2;
|
|
|
- private System.Windows.Forms.Button button3;
|
|
|
- private System.Windows.Forms.CheckedListBox checkedListBox1;
|
|
|
- private System.Windows.Forms.ComboBox cmbComport;
|
|
|
+
|
|
|
private System.Windows.Forms.MenuStrip menuStrip1;
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem closeToolStripMenuItem;
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem;
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem setingsToolStripMenuItem;
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem viewToolStripMenuItem;
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem graphToolStripMenuItem;
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem chatToolStripMenuItem;
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem consoleToolStripMenuItem;
|
|
|
private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem;
|
|
|
- private System.Windows.Forms.DataVisualization.Charting.Chart chart1;
|
|
|
- private System.Windows.Forms.ProgressBar pgbComport;
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem;
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem moreToolStripMenuItem;
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem debugToolStripMenuItem;
|
|
|
+
|
|
|
+
|
|
|
+ private User_Controls.UcConsole ucConsole1;
|
|
|
+ private User_Controls.UcSettings ucSettings1;
|
|
|
+ private User_Controls.UcGraph ucGraph1;
|
|
|
+ private User_Controls.UcChat ucChat1;
|
|
|
}
|
|
|
}
|
|
|
|