Skip to content

Commit ca54d86

Browse files
committed
expand the GUI
1 parent 232ef0c commit ca54d86

36 files changed

+276
-202
lines changed

.README.md.swp

12 KB
Binary file not shown.

.gitattributes

100755100644
File mode changed.

.gitignore

100755100644
File mode changed.

README.md

100755100644
File mode changed.

lgpl-3.0.txt

100755100644
File mode changed.

serialComPlot.sln

100755100644
File mode changed.

serialComPlot/App.config

100755100644
File mode changed.

serialComPlot/Form1.Designer.cs

100755100644
Lines changed: 50 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

serialComPlot/Form1.cs

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ private void Form1_Load(object sender, EventArgs e)
5858
cbBaudrate.SelectedIndex = 0;
5959

6060
string[] str = SerialPort.GetPortNames();
61-
if(str == null)
61+
if(str.Length == 0)
6262
{
63-
MessageBox.Show("本机没有串口", "Error");
63+
6464
return;
6565
}
6666
foreach(string s in System.IO.Ports.SerialPort.GetPortNames())

serialComPlot/Form1.resx

100755100644
File mode changed.

0 commit comments

Comments
 (0)