//----------------------------------------------------------------------- // // Copyright © 2012 Nils Hammar. All rights reserved. // //----------------------------------------------------------------------- /* * Software to access vehicle information via the OBD-II connector. * * Copyright © 2012 Nils Hammar * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Alternative licensing is possible, see the licensing document. * * The above text may not be removed or modified. */ namespace ObdSimulator { [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1611:ElementParametersMustBeDocumented", Justification = "Tool Generated.")] [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.ReadabilityRules", "SA1122:UseStringEmptyForEmptyStrings", Justification = "Tool Generated.")] [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.OrderingRules", "SA1202:ElementsMustBeOrderedByAccess", Justification = "Tool Generated.")] [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1401:FieldsMustBePrivate", Justification = "Tool Generated.")] [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.ReadabilityRules", "SA1101:PrefixLocalCallsWithThis", Justification = "Tool Generated.")] [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1400:AccessModifierMustBeDeclared", Justification = "Tool Generated.")] [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.LayoutRules", "SA1513:ClosingCurlyBracketMustBeFollowedByBlankLine", Justification = "Tool Generated.")] [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented", Justification = "Tool Generated.")] [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1601:PartialElementsMustBeDocumented", Justification = "Tool Generated.")] partial class ObdSerialSimulator { /// /// Required designer variable. /// private System.ComponentModel.IContainer components = null; /// /// Clean up any resources being used. /// /// true if managed resources should be disposed; otherwise, false. protected override void Dispose(bool disposing) { if (this.simpleSerialDevice != null) { this.simpleSerialDevice.Dispose(); } if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.configTab = new System.Windows.Forms.TabPage(); this.setChecksumCheckBox = new System.Windows.Forms.CheckBox(); this.checksumCB = new System.Windows.Forms.CheckBox(); this.txButton = new System.Windows.Forms.Button(); this.label3 = new System.Windows.Forms.Label(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.closeButton = new System.Windows.Forms.Button(); this.openButton = new System.Windows.Forms.Button(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.portCB = new System.Windows.Forms.ComboBox(); this.speedCb = new System.Windows.Forms.ComboBox(); this.trafficTab = new System.Windows.Forms.TabPage(); this.trafficDGV = new System.Windows.Forms.DataGridView(); this.traffic_count = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.traffic_direction = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.traffic_data = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.label4 = new System.Windows.Forms.Label(); this.button1 = new System.Windows.Forms.Button(); this.tabControl1.SuspendLayout(); this.configTab.SuspendLayout(); this.trafficTab.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.trafficDGV)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // tabControl1 // this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tabControl1.Controls.Add(this.configTab); this.tabControl1.Controls.Add(this.trafficTab); this.tabControl1.Location = new System.Drawing.Point(12, 36); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; this.tabControl1.Size = new System.Drawing.Size(747, 424); this.tabControl1.TabIndex = 0; // // configTab // this.configTab.Controls.Add(this.setChecksumCheckBox); this.configTab.Controls.Add(this.checksumCB); this.configTab.Controls.Add(this.txButton); this.configTab.Controls.Add(this.label3); this.configTab.Controls.Add(this.comboBox1); this.configTab.Controls.Add(this.closeButton); this.configTab.Controls.Add(this.openButton); this.configTab.Controls.Add(this.label2); this.configTab.Controls.Add(this.label1); this.configTab.Controls.Add(this.portCB); this.configTab.Controls.Add(this.speedCb); this.configTab.Location = new System.Drawing.Point(4, 22); this.configTab.Name = "configTab"; this.configTab.Padding = new System.Windows.Forms.Padding(3); this.configTab.Size = new System.Drawing.Size(739, 398); this.configTab.TabIndex = 1; this.configTab.Text = "Config"; this.configTab.UseVisualStyleBackColor = true; // // setChecksumCheckBox // this.setChecksumCheckBox.AutoSize = true; this.setChecksumCheckBox.Location = new System.Drawing.Point(226, 35); this.setChecksumCheckBox.Name = "setChecksumCheckBox"; this.setChecksumCheckBox.Size = new System.Drawing.Size(95, 17); this.setChecksumCheckBox.TabIndex = 27; this.setChecksumCheckBox.Text = "Set Checksum"; this.setChecksumCheckBox.UseVisualStyleBackColor = true; this.setChecksumCheckBox.CheckedChanged += new System.EventHandler(this.setChecksumCheckBox_CheckedChanged); // // checksumCB // this.checksumCB.AutoSize = true; this.checksumCB.Location = new System.Drawing.Point(226, 8); this.checksumCB.Name = "checksumCB"; this.checksumCB.Size = new System.Drawing.Size(112, 17); this.checksumCB.TabIndex = 26; this.checksumCB.Text = "Expect Checksum"; this.checksumCB.UseVisualStyleBackColor = true; this.checksumCB.CheckedChanged += new System.EventHandler(this.checksumCB_CheckedChanged); // // txButton // this.txButton.Location = new System.Drawing.Point(59, 126); this.txButton.Name = "txButton"; this.txButton.Size = new System.Drawing.Size(75, 23); this.txButton.TabIndex = 25; this.txButton.Text = "Tx"; this.txButton.UseVisualStyleBackColor = true; this.txButton.Click += new System.EventHandler(this.txButton_Click); // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(7, 9); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(46, 13); this.label3.TabIndex = 24; this.label3.Text = "Protocol"; // // comboBox1 // this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.DropDownWidth = 250; this.comboBox1.FormattingEnabled = true; this.comboBox1.Items.AddRange(new object[] { "ISO9141", "ISO14230/5 baud", "ISO14230/Fast"}); this.comboBox1.Location = new System.Drawing.Point(59, 6); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(161, 21); this.comboBox1.TabIndex = 23; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // closeButton // this.closeButton.Enabled = false; this.closeButton.Location = new System.Drawing.Point(145, 87); this.closeButton.Name = "closeButton"; this.closeButton.Size = new System.Drawing.Size(75, 23); this.closeButton.TabIndex = 22; this.closeButton.Text = "Close"; this.closeButton.UseVisualStyleBackColor = true; this.closeButton.Click += new System.EventHandler(this.closeButton_Click); // // openButton // this.openButton.Location = new System.Drawing.Point(59, 87); this.openButton.Name = "openButton"; this.openButton.Size = new System.Drawing.Size(75, 23); this.openButton.TabIndex = 21; this.openButton.Text = "Open"; this.openButton.UseVisualStyleBackColor = true; this.openButton.Click += new System.EventHandler(this.openButton_Click); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(15, 36); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(38, 13); this.label2.TabIndex = 20; this.label2.Text = "Speed"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(27, 65); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(26, 13); this.label1.TabIndex = 19; this.label1.Text = "Port"; // // portCB // this.portCB.DropDownWidth = 250; this.portCB.FormattingEnabled = true; this.portCB.Location = new System.Drawing.Point(59, 60); this.portCB.Name = "portCB"; this.portCB.Size = new System.Drawing.Size(161, 21); this.portCB.TabIndex = 18; this.portCB.SelectedIndexChanged += new System.EventHandler(this.portCB_SelectedIndexChanged); // // speedCb // this.speedCb.FormattingEnabled = true; this.speedCb.Items.AddRange(new object[] { "300", "1200", "2400", "4800", "9600", "10400"}); this.speedCb.Location = new System.Drawing.Point(59, 33); this.speedCb.Name = "speedCb"; this.speedCb.Size = new System.Drawing.Size(161, 21); this.speedCb.TabIndex = 17; this.speedCb.Text = "10400"; // // trafficTab // this.trafficTab.Controls.Add(this.trafficDGV); this.trafficTab.Location = new System.Drawing.Point(4, 22); this.trafficTab.Name = "trafficTab"; this.trafficTab.Padding = new System.Windows.Forms.Padding(3); this.trafficTab.Size = new System.Drawing.Size(739, 398); this.trafficTab.TabIndex = 0; this.trafficTab.Text = "Traffic"; this.trafficTab.UseVisualStyleBackColor = true; // // trafficDGV // this.trafficDGV.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.trafficDGV.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.trafficDGV.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.traffic_count, this.traffic_direction, this.traffic_data}); this.trafficDGV.Location = new System.Drawing.Point(3, 6); this.trafficDGV.Name = "trafficDGV"; this.trafficDGV.Size = new System.Drawing.Size(733, 375); this.trafficDGV.TabIndex = 0; this.trafficDGV.SizeChanged += new System.EventHandler(this.dataGridView1_SizeChanged); // // traffic_count // this.traffic_count.HeaderText = "#"; this.traffic_count.Name = "traffic_count"; this.traffic_count.Width = 70; // // traffic_direction // this.traffic_direction.HeaderText = "Dir"; this.traffic_direction.Name = "traffic_direction"; this.traffic_direction.Width = 50; // // traffic_data // this.traffic_data.HeaderText = "Data"; this.traffic_data.Name = "traffic_data"; // // pictureBox1 // this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pictureBox1.Image = global::ObdSimulator.Properties.Resources.disconnect; this.pictureBox1.Location = new System.Drawing.Point(50, 7); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(18, 18); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox1.TabIndex = 1; this.pictureBox1.TabStop = false; // // timer1 // this.timer1.Interval = 1000; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(12, 9); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(37, 13); this.label4.TabIndex = 2; this.label4.Text = "Status"; // // button1 // this.button1.Location = new System.Drawing.Point(684, 4); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 26; this.button1.Text = "Clear"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // ObdSerialSimulator // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.button1); this.Controls.Add(this.label4); this.Controls.Add(this.pictureBox1); this.Controls.Add(this.tabControl1); this.Name = "ObdSerialSimulator"; this.Size = new System.Drawing.Size(771, 472); this.tabControl1.ResumeLayout(false); this.configTab.ResumeLayout(false); this.configTab.PerformLayout(); this.trafficTab.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.trafficDGV)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.TabControl tabControl1; private System.Windows.Forms.TabPage trafficTab; private System.Windows.Forms.DataGridView trafficDGV; private System.Windows.Forms.TabPage configTab; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label1; private System.Windows.Forms.ComboBox portCB; private System.Windows.Forms.ComboBox speedCb; private System.Windows.Forms.Button openButton; private System.Windows.Forms.Button closeButton; private System.Windows.Forms.Label label3; private System.Windows.Forms.ComboBox comboBox1; private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.Timer timer1; private System.Windows.Forms.Label label4; private System.Windows.Forms.Button txButton; private System.Windows.Forms.Button button1; private System.Windows.Forms.CheckBox checksumCB; private System.Windows.Forms.DataGridViewTextBoxColumn traffic_count; private System.Windows.Forms.DataGridViewTextBoxColumn traffic_direction; private System.Windows.Forms.DataGridViewTextBoxColumn traffic_data; private System.Windows.Forms.CheckBox setChecksumCheckBox; } }