Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 2260 → Rev 2261

/MKLiveView/Source/EasySerialPort/SimpleSerialPort.Designer.cs
42,12 → 42,13
this.labelDataBits = new System.Windows.Forms.Label();
this.labelStopBits = new System.Windows.Forms.Label();
this.labelParity = new System.Windows.Forms.Label();
this.btnRefresh = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// comboBoxPortName
//
this.comboBoxPortName.FormattingEnabled = true;
this.comboBoxPortName.Location = new System.Drawing.Point(66, 88);
this.comboBoxPortName.Location = new System.Drawing.Point(73, 88);
this.comboBoxPortName.Name = "comboBoxPortName";
this.comboBoxPortName.Size = new System.Drawing.Size(100, 21);
this.comboBoxPortName.TabIndex = 0;
54,7 → 55,7
//
// buttonOpen
//
this.buttonOpen.Location = new System.Drawing.Point(66, 5);
this.buttonOpen.Location = new System.Drawing.Point(73, 5);
this.buttonOpen.Name = "buttonOpen";
this.buttonOpen.Size = new System.Drawing.Size(100, 23);
this.buttonOpen.TabIndex = 1;
64,7 → 65,7
//
// buttonClose
//
this.buttonClose.Location = new System.Drawing.Point(66, 34);
this.buttonClose.Location = new System.Drawing.Point(73, 34);
this.buttonClose.Name = "buttonClose";
this.buttonClose.Size = new System.Drawing.Size(100, 23);
this.buttonClose.TabIndex = 2;
74,7 → 75,7
//
// textBoxBaudRate
//
this.textBoxBaudRate.Location = new System.Drawing.Point(66, 115);
this.textBoxBaudRate.Location = new System.Drawing.Point(73, 115);
this.textBoxBaudRate.Name = "textBoxBaudRate";
this.textBoxBaudRate.Size = new System.Drawing.Size(100, 20);
this.textBoxBaudRate.TabIndex = 3;
81,7 → 82,7
//
// textBoxStatus
//
this.textBoxStatus.Location = new System.Drawing.Point(66, 63);
this.textBoxStatus.Location = new System.Drawing.Point(73, 63);
this.textBoxStatus.Name = "textBoxStatus";
this.textBoxStatus.ReadOnly = true;
this.textBoxStatus.Size = new System.Drawing.Size(100, 20);
89,7 → 90,7
//
// textBoxDataBits
//
this.textBoxDataBits.Location = new System.Drawing.Point(66, 142);
this.textBoxDataBits.Location = new System.Drawing.Point(73, 142);
this.textBoxDataBits.Name = "textBoxDataBits";
this.textBoxDataBits.Size = new System.Drawing.Size(100, 20);
this.textBoxDataBits.TabIndex = 5;
97,7 → 98,7
// comboBoxStopBits
//
this.comboBoxStopBits.FormattingEnabled = true;
this.comboBoxStopBits.Location = new System.Drawing.Point(66, 169);
this.comboBoxStopBits.Location = new System.Drawing.Point(73, 169);
this.comboBoxStopBits.Name = "comboBoxStopBits";
this.comboBoxStopBits.Size = new System.Drawing.Size(100, 21);
this.comboBoxStopBits.TabIndex = 6;
105,7 → 106,7
// comboBoxParity
//
this.comboBoxParity.FormattingEnabled = true;
this.comboBoxParity.Location = new System.Drawing.Point(66, 197);
this.comboBoxParity.Location = new System.Drawing.Point(73, 197);
this.comboBoxParity.Name = "comboBoxParity";
this.comboBoxParity.Size = new System.Drawing.Size(100, 21);
this.comboBoxParity.TabIndex = 7;
113,7 → 114,7
// labelStatus
//
this.labelStatus.AutoSize = true;
this.labelStatus.Location = new System.Drawing.Point(23, 66);
this.labelStatus.Location = new System.Drawing.Point(30, 66);
this.labelStatus.Name = "labelStatus";
this.labelStatus.Size = new System.Drawing.Size(37, 13);
this.labelStatus.TabIndex = 8;
122,7 → 123,7
// labelPortName
//
this.labelPortName.AutoSize = true;
this.labelPortName.Location = new System.Drawing.Point(3, 91);
this.labelPortName.Location = new System.Drawing.Point(10, 91);
this.labelPortName.Name = "labelPortName";
this.labelPortName.Size = new System.Drawing.Size(57, 13);
this.labelPortName.TabIndex = 9;
131,7 → 132,7
// labelBaudRate
//
this.labelBaudRate.AutoSize = true;
this.labelBaudRate.Location = new System.Drawing.Point(2, 118);
this.labelBaudRate.Location = new System.Drawing.Point(9, 118);
this.labelBaudRate.Name = "labelBaudRate";
this.labelBaudRate.Size = new System.Drawing.Size(58, 13);
this.labelBaudRate.TabIndex = 10;
140,7 → 141,7
// labelDataBits
//
this.labelDataBits.AutoSize = true;
this.labelDataBits.Location = new System.Drawing.Point(10, 145);
this.labelDataBits.Location = new System.Drawing.Point(17, 145);
this.labelDataBits.Name = "labelDataBits";
this.labelDataBits.Size = new System.Drawing.Size(50, 13);
this.labelDataBits.TabIndex = 11;
149,7 → 150,7
// labelStopBits
//
this.labelStopBits.AutoSize = true;
this.labelStopBits.Location = new System.Drawing.Point(11, 172);
this.labelStopBits.Location = new System.Drawing.Point(18, 172);
this.labelStopBits.Name = "labelStopBits";
this.labelStopBits.Size = new System.Drawing.Size(49, 13);
this.labelStopBits.TabIndex = 12;
158,16 → 159,27
// labelParity
//
this.labelParity.AutoSize = true;
this.labelParity.Location = new System.Drawing.Point(23, 200);
this.labelParity.Location = new System.Drawing.Point(30, 200);
this.labelParity.Name = "labelParity";
this.labelParity.Size = new System.Drawing.Size(33, 13);
this.labelParity.TabIndex = 13;
this.labelParity.Text = "Parity";
//
// btnRefresh
//
this.btnRefresh.Location = new System.Drawing.Point(5, 9);
this.btnRefresh.Name = "btnRefresh";
this.btnRefresh.Size = new System.Drawing.Size(60, 39);
this.btnRefresh.TabIndex = 14;
this.btnRefresh.Text = "refresh\r\nportlist";
this.btnRefresh.UseVisualStyleBackColor = true;
this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
//
// SimpleSerialPort
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.btnRefresh);
this.Controls.Add(this.labelParity);
this.Controls.Add(this.labelStopBits);
this.Controls.Add(this.labelDataBits);
183,7 → 195,7
this.Controls.Add(this.buttonOpen);
this.Controls.Add(this.comboBoxPortName);
this.Name = "SimpleSerialPort";
this.Size = new System.Drawing.Size(175, 229);
this.Size = new System.Drawing.Size(181, 229);
this.ResumeLayout(false);
this.PerformLayout();
 
205,5 → 217,6
private System.Windows.Forms.Label labelDataBits;
private System.Windows.Forms.Label labelStopBits;
private System.Windows.Forms.Label labelParity;
private System.Windows.Forms.Button btnRefresh;
}
}
/MKLiveView/Source/EasySerialPort/SimpleSerialPort.cs
236,5 → 236,16
 
 
}
 
private void btnRefresh_Click(object sender, EventArgs e)
{
if (!port.IsOpen)
{
comboBoxPortName.Items.Clear();
comboBoxPortName.Items.AddRange(getPortNameValues());
}
else
MessageBox.Show("Port has to be closed!");
}
}
}
/MKLiveView/Source/EasySerialPort/bin/Release/SimpleSerialPort.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/bin/Release/SimpleSerialPort.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/obj/Release/SimpleSerialPort.csproj.GenerateResource.Cache
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/obj/Release/SimpleSerialPort.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/obj/Release/SimpleSerialPort.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream