Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Client.SamplePackages.V4.0
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陶然
Kivii.Client.SamplePackages.V4.0
Commits
92a84c90
Commit
92a84c90
authored
Jun 14, 2023
by
陶然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
界面布局优化
parent
0142679c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
14 deletions
+25
-14
FrmMain.Designer.cs
Src/FrmMain.Designer.cs
+12
-10
FrmMain.cs
Src/FrmMain.cs
+1
-0
AssemblyInfo.cs
Src/Properties/AssemblyInfo.cs
+2
-2
Reader.cs
Src/Reader.cs
+10
-2
No files found.
Src/FrmMain.Designer.cs
View file @
92a84c90
...
...
@@ -96,6 +96,7 @@
//
// gbInfo
//
this
.
gbInfo
.
Controls
.
Add
(
this
.
btnInstallDriver
);
this
.
gbInfo
.
Controls
.
Add
(
this
.
lbCurrentPackageNode
);
this
.
gbInfo
.
Controls
.
Add
(
this
.
lbCurrentPackage
);
this
.
gbInfo
.
Controls
.
Add
(
this
.
lbCurrentLocation
);
...
...
@@ -118,7 +119,7 @@
this
.
lbCurrentPackageNode
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
12F
);
this
.
lbCurrentPackageNode
.
Location
=
new
System
.
Drawing
.
Point
(
16
,
180
);
this
.
lbCurrentPackageNode
.
Name
=
"lbCurrentPackageNode"
;
this
.
lbCurrentPackageNode
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
16
);
this
.
lbCurrentPackageNode
.
Size
=
new
System
.
Drawing
.
Size
(
79
,
16
);
this
.
lbCurrentPackageNode
.
TabIndex
=
7
;
this
.
lbCurrentPackageNode
.
Text
=
"当前袋子:"
;
//
...
...
@@ -128,7 +129,7 @@
this
.
lbCurrentPackage
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
12F
);
this
.
lbCurrentPackage
.
Location
=
new
System
.
Drawing
.
Point
(
16
,
127
);
this
.
lbCurrentPackage
.
Name
=
"lbCurrentPackage"
;
this
.
lbCurrentPackage
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
16
);
this
.
lbCurrentPackage
.
Size
=
new
System
.
Drawing
.
Size
(
79
,
16
);
this
.
lbCurrentPackage
.
TabIndex
=
6
;
this
.
lbCurrentPackage
.
Text
=
"当前箱号:"
;
//
...
...
@@ -138,7 +139,7 @@
this
.
lbCurrentLocation
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
12F
);
this
.
lbCurrentLocation
.
Location
=
new
System
.
Drawing
.
Point
(
16
,
74
);
this
.
lbCurrentLocation
.
Name
=
"lbCurrentLocation"
;
this
.
lbCurrentLocation
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
16
);
this
.
lbCurrentLocation
.
Size
=
new
System
.
Drawing
.
Size
(
79
,
16
);
this
.
lbCurrentLocation
.
TabIndex
=
5
;
this
.
lbCurrentLocation
.
Text
=
"当前位置:"
;
//
...
...
@@ -148,7 +149,7 @@
this
.
lbCurrentDepartment
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
12F
);
this
.
lbCurrentDepartment
.
Location
=
new
System
.
Drawing
.
Point
(
16
,
21
);
this
.
lbCurrentDepartment
.
Name
=
"lbCurrentDepartment"
;
this
.
lbCurrentDepartment
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
16
);
this
.
lbCurrentDepartment
.
Size
=
new
System
.
Drawing
.
Size
(
79
,
16
);
this
.
lbCurrentDepartment
.
TabIndex
=
4
;
this
.
lbCurrentDepartment
.
Text
=
"当前部门:"
;
//
...
...
@@ -316,7 +317,6 @@
//
// gbTools
//
this
.
gbTools
.
Controls
.
Add
(
this
.
btnInstallDriver
);
this
.
gbTools
.
Controls
.
Add
(
this
.
ckbAutoCreatePackage
);
this
.
gbTools
.
Controls
.
Add
(
this
.
lbTips
);
this
.
gbTools
.
Controls
.
Add
(
this
.
lbScanSample
);
...
...
@@ -571,13 +571,15 @@
//
// btnInstallDriver
//
this
.
btnInstallDriver
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnInstallDriver
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Bottom
;
this
.
btnInstallDriver
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
99
);
this
.
btnInstallDriver
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
ControlText
;
this
.
btnInstallDriver
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
272
);
this
.
btnInstallDriver
.
Name
=
"btnInstallDriver"
;
this
.
btnInstallDriver
.
Size
=
new
System
.
Drawing
.
Size
(
780
,
23
);
this
.
btnInstallDriver
.
TabIndex
=
8
2
;
this
.
btnInstallDriver
.
Size
=
new
System
.
Drawing
.
Size
(
259
,
38
);
this
.
btnInstallDriver
.
TabIndex
=
8
3
;
this
.
btnInstallDriver
.
Text
=
"驱动安装"
;
this
.
btnInstallDriver
.
UseVisualStyleBackColor
=
tru
e
;
this
.
btnInstallDriver
.
UseVisualStyleBackColor
=
fals
e
;
this
.
btnInstallDriver
.
Visible
=
false
;
this
.
btnInstallDriver
.
Click
+=
new
System
.
EventHandler
(
this
.
btnInstallDriver_Click
);
//
...
...
@@ -591,7 +593,7 @@
this
.
Controls
.
Add
(
this
.
plLeft
);
this
.
Icon
=
((
System
.
Drawing
.
Icon
)(
resources
.
GetObject
(
"$this.Icon"
)));
this
.
Name
=
"FrmMain"
;
this
.
Text
=
"样品入箱客户端 1.0(23.6.1
2
CP2101)"
;
this
.
Text
=
"样品入箱客户端 1.0(23.6.1
4
CP2101)"
;
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FrmMain_Load
);
this
.
plLeft
.
ResumeLayout
(
false
);
this
.
gbInfo
.
ResumeLayout
(
false
);
...
...
Src/FrmMain.cs
View file @
92a84c90
...
...
@@ -686,6 +686,7 @@ namespace Kivii.Client.SamplePackages
try
{
ReaderInstance
.
AutoOpenComPort
();
btnInstallDriver
.
Visible
=
true
;
}
catch
(
Exception
ex
)
{
...
...
Src/Properties/AssemblyInfo.cs
View file @
92a84c90
...
...
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.2023.61
2
0")]
[assembly: AssemblyFileVersion("5.4.2023.61
2
0")]
[assembly: AssemblyVersion("5.4.2023.61
4
0")]
[assembly: AssemblyFileVersion("5.4.2023.61
4
0")]
Src/Reader.cs
View file @
92a84c90
...
...
@@ -256,9 +256,17 @@ namespace Kivii.Client.SamplePackages
if
(!
fileName
.
ToLower
().
Contains
(
".cp2101_setup.exe"
))
continue
;
localFileName
=
Path
.
Combine
(
savePath
,
"setup.exe"
);
var
stream
=
assembly
.
GetManifestResourceStream
(
fileName
);
using
(
var
fileStream
=
new
FileStream
(
localFileName
,
FileMode
.
Create
))
try
{
stream
.
CopyTo
(
fileStream
);
using
(
var
fileStream
=
new
FileStream
(
localFileName
,
FileMode
.
Create
))
{
stream
.
CopyTo
(
fileStream
);
}
}
catch
(
Exception
ex
)
{
MessageBox
.
Show
(
ex
.
Message
,
"安装错误"
);
return
;
}
stream
.
Dispose
();
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment