Skip to content

Commit e86af1e

Browse files
committed
NEW:添加自定义命令组;添加文件发送
1 parent 12399ef commit e86af1e

12 files changed

Lines changed: 74 additions & 36 deletions

File tree

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Visual Studio
2+
.vs/
3+
*.user
4+
*.suo
5+
6+
# Build results
7+
bin/
8+
obj/
9+
10+
# NuGet
11+
*.nupkg
12+
# The packages folder can be ignored if you use Package Restore
13+
packages/
14+
15+
# Others
16+
*.log
17+
*.tlog
18+
*.cache
19+
*.pdb
20+
21+
# User-specific files
22+
*.user
23+
*.rsuser
24+
*.sln.docstates
25+
26+
# Build directories for Visual Studio Code
27+
.vscode/
28+
29+
# Windows image file caches
30+
Thumbs.db
31+
ehthumbs.db
32+
33+
# Rider
34+
.idea/
35+
*.sln.iml
36+
37+
# Recycle Bin used on file shares
38+
$RECYCLE.BIN/
39+
40+
# macOS
41+
.DS_Store
Binary file not shown.

.vs/WPFSerialAssistant/v17/.suo

-5.5 KB
Binary file not shown.

.vs/WPFSerialAssistant/v17/DocumentLayout.backup.json

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"WorkspaceRootPath": "C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\",
44
"Documents": [
55
{
6-
"AbsoluteMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\wpfserialassistant\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}",
6+
"AbsoluteMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\wpfserialassistant\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
7+
"RelativeMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|solutionrelative:wpfserialassistant\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
8+
},
9+
{
10+
"AbsoluteMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|c:\\users\\hp\\documents\\github\\serialassistant\\wpfserialassistant\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}",
711
"RelativeMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|solutionrelative:wpfserialassistant\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}"
812
},
913
{
1014
"AbsoluteMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\wpfserialassistant\\selectdialog.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
1115
"RelativeMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|solutionrelative:wpfserialassistant\\selectdialog.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
1216
},
13-
{
14-
"AbsoluteMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|c:\\users\\hp\\documents\\github\\serialassistant\\wpfserialassistant\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
15-
"RelativeMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|solutionrelative:wpfserialassistant\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
16-
},
1717
{
1818
"AbsoluteMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\wpfserialassistant\\saserialport.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
1919
"RelativeMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|solutionrelative:wpfserialassistant\\saserialport.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
@@ -30,24 +30,23 @@
3030
"DocumentGroups": [
3131
{
3232
"DockedWidth": 200,
33-
"SelectedChildIndex": 5,
33+
"SelectedChildIndex": 4,
3434
"Children": [
3535
{
3636
"$type": "Bookmark",
3737
"Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
3838
},
3939
{
4040
"$type": "Document",
41-
"DocumentIndex": 1,
41+
"DocumentIndex": 2,
4242
"Title": "SelectDialog.xaml.cs",
4343
"DocumentMoniker": "C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\WPFSerialAssistant\\SelectDialog.xaml.cs",
4444
"RelativeDocumentMoniker": "WPFSerialAssistant\\SelectDialog.xaml.cs",
4545
"ToolTip": "C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\WPFSerialAssistant\\SelectDialog.xaml.cs",
4646
"RelativeToolTip": "WPFSerialAssistant\\SelectDialog.xaml.cs",
4747
"ViewState": "AgIAAAAAAAAAAAAAAAAAABYAAAAAAAAAAAAAAA==",
4848
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
49-
"WhenOpened": "2025-08-01T09:06:28.406Z",
50-
"EditorCaption": ""
49+
"WhenOpened": "2025-08-01T09:06:28.406Z"
5150
},
5251
{
5352
"$type": "Document",
@@ -58,8 +57,7 @@
5857
"ToolTip": "C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\WPFSerialAssistant\\SelectDialog.xaml",
5958
"RelativeToolTip": "WPFSerialAssistant\\SelectDialog.xaml",
6059
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
61-
"WhenOpened": "2025-08-01T09:05:51.188Z",
62-
"EditorCaption": ""
60+
"WhenOpened": "2025-08-01T09:05:51.188Z"
6361
},
6462
{
6563
"$type": "Document",
@@ -71,25 +69,24 @@
7169
"RelativeToolTip": "WPFSerialAssistant\\SASerialPort.cs",
7270
"ViewState": "AgIAAKoAAAAAAAAAAAAuwLwAAAAAAAAAAAAAAA==",
7371
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
74-
"WhenOpened": "2025-05-27T10:09:27.392Z",
75-
"EditorCaption": ""
72+
"WhenOpened": "2025-05-27T10:09:27.392Z"
7673
},
7774
{
7875
"$type": "Document",
79-
"DocumentIndex": 2,
76+
"DocumentIndex": 0,
8077
"Title": "MainWindow.xaml.cs",
8178
"DocumentMoniker": "C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\WPFSerialAssistant\\MainWindow.xaml.cs",
8279
"RelativeDocumentMoniker": "WPFSerialAssistant\\MainWindow.xaml.cs",
8380
"ToolTip": "C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\WPFSerialAssistant\\MainWindow.xaml.cs",
8481
"RelativeToolTip": "WPFSerialAssistant\\MainWindow.xaml.cs",
85-
"ViewState": "AgIAAEIBAAAAAAAAAAAIwFMBAAAmAAAAAAAAAA==",
82+
"ViewState": "AgIAAA0BAAAAAAAAAAAiwCABAAAAAAAAAAAAAA==",
8683
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
8784
"WhenOpened": "2025-05-27T09:53:13.299Z",
8885
"EditorCaption": ""
8986
},
9087
{
9188
"$type": "Document",
92-
"DocumentIndex": 0,
89+
"DocumentIndex": 1,
9390
"Title": "MainWindow.xaml",
9491
"DocumentMoniker": "C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\WPFSerialAssistant\\MainWindow.xaml",
9592
"RelativeDocumentMoniker": "WPFSerialAssistant\\MainWindow.xaml",

.vs/WPFSerialAssistant/v17/DocumentLayout.json

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
"WorkspaceRootPath": "C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\",
44
"Documents": [
55
{
6-
"AbsoluteMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\wpfserialassistant\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}",
6+
"AbsoluteMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|c:\\users\\hp\\documents\\github\\serialassistant\\wpfserialassistant\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}",
77
"RelativeMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|solutionrelative:wpfserialassistant\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}"
88
},
99
{
10-
"AbsoluteMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\wpfserialassistant\\selectdialog.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
11-
"RelativeMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|solutionrelative:wpfserialassistant\\selectdialog.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
10+
"AbsoluteMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\wpfserialassistant\\saserialport.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
11+
"RelativeMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|solutionrelative:wpfserialassistant\\saserialport.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
1212
},
1313
{
14-
"AbsoluteMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|c:\\users\\hp\\documents\\github\\serialassistant\\wpfserialassistant\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
14+
"AbsoluteMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\wpfserialassistant\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
1515
"RelativeMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|solutionrelative:wpfserialassistant\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
1616
},
1717
{
18-
"AbsoluteMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\wpfserialassistant\\saserialport.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
19-
"RelativeMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|solutionrelative:wpfserialassistant\\saserialport.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
18+
"AbsoluteMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\wpfserialassistant\\selectdialog.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
19+
"RelativeMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|solutionrelative:wpfserialassistant\\selectdialog.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
2020
},
2121
{
2222
"AbsoluteMoniker": "D:0:0:{DA01B86D-5BC1-4863-BAAC-71B309B09CC0}|WPFSerialAssistant\\WPFSerialAssistant.csproj|C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\wpfserialassistant\\selectdialog.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}",
@@ -38,16 +38,15 @@
3838
},
3939
{
4040
"$type": "Document",
41-
"DocumentIndex": 1,
41+
"DocumentIndex": 3,
4242
"Title": "SelectDialog.xaml.cs",
4343
"DocumentMoniker": "C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\WPFSerialAssistant\\SelectDialog.xaml.cs",
4444
"RelativeDocumentMoniker": "WPFSerialAssistant\\SelectDialog.xaml.cs",
4545
"ToolTip": "C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\WPFSerialAssistant\\SelectDialog.xaml.cs",
4646
"RelativeToolTip": "WPFSerialAssistant\\SelectDialog.xaml.cs",
4747
"ViewState": "AgIAAAAAAAAAAAAAAAAAABYAAAAAAAAAAAAAAA==",
4848
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
49-
"WhenOpened": "2025-08-01T09:06:28.406Z",
50-
"EditorCaption": ""
49+
"WhenOpened": "2025-08-01T09:06:28.406Z"
5150
},
5251
{
5352
"$type": "Document",
@@ -58,18 +57,17 @@
5857
"ToolTip": "C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\WPFSerialAssistant\\SelectDialog.xaml",
5958
"RelativeToolTip": "WPFSerialAssistant\\SelectDialog.xaml",
6059
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
61-
"WhenOpened": "2025-08-01T09:05:51.188Z",
62-
"EditorCaption": ""
60+
"WhenOpened": "2025-08-01T09:05:51.188Z"
6361
},
6462
{
6563
"$type": "Document",
66-
"DocumentIndex": 3,
64+
"DocumentIndex": 1,
6765
"Title": "SASerialPort.cs",
6866
"DocumentMoniker": "C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\WPFSerialAssistant\\SASerialPort.cs",
6967
"RelativeDocumentMoniker": "WPFSerialAssistant\\SASerialPort.cs",
70-
"ToolTip": "C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\WPFSerialAssistant\\SASerialPort.cs",
71-
"RelativeToolTip": "WPFSerialAssistant\\SASerialPort.cs",
72-
"ViewState": "AgIAAKoAAAAAAAAAAAAuwLwAAAAAAAAAAAAAAA==",
68+
"ToolTip": "C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\WPFSerialAssistant\\SASerialPort.cs*",
69+
"RelativeToolTip": "WPFSerialAssistant\\SASerialPort.cs*",
70+
"ViewState": "AgIAAJ0AAAAAAAAAAAAQwL0AAAAAAAAAAAAAAA==",
7371
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
7472
"WhenOpened": "2025-05-27T10:09:27.392Z",
7573
"EditorCaption": ""
@@ -82,7 +80,7 @@
8280
"RelativeDocumentMoniker": "WPFSerialAssistant\\MainWindow.xaml.cs",
8381
"ToolTip": "C:\\Users\\hp\\Documents\\GitHub\\SerialAssistant\\WPFSerialAssistant\\MainWindow.xaml.cs",
8482
"RelativeToolTip": "WPFSerialAssistant\\MainWindow.xaml.cs",
85-
"ViewState": "AgIAAEIBAAAAAAAAAAAIwFMBAAAmAAAAAAAAAA==",
83+
"ViewState": "AgIAAA0BAAAAAAAAAAAiwCABAAANAAAAAAAAAA==",
8684
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
8785
"WhenOpened": "2025-05-27T09:53:13.299Z",
8886
"EditorCaption": ""

DebugPics/1.PNG

-52 KB
Binary file not shown.

DebugPics/2.PNG

-61.1 KB
Binary file not shown.

DebugPics/3.PNG

-57.7 KB
Binary file not shown.

DebugPics/4.PNG

-66.4 KB
Binary file not shown.

DebugPics/5.PNG

-53.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)