Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Ftt_Common
Project
Project
Details
Activity
Releases
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
Administrator
Ftt_Common
Commits
2fe307ca
Commit
2fe307ca
authored
Jun 22, 2021
by
tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、工具平台:自动更新界面优化
parent
6b711b8f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
Tools.exe.config
AppHome/Tools.exe.config
+1
-1
wUploadUpdate.Designer.cs
Tools/UI/sys/wUploadUpdate.Designer.cs
+4
-4
wUploadUpdate.cs
Tools/UI/sys/wUploadUpdate.cs
+6
-2
No files found.
AppHome/Tools.exe.config
View file @
2fe307ca
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
appSettings
>
<
add
key
=
"UpdateTime"
value
=
""
/>
<
add
key
=
"UpdateTime"
value
=
"
2021-06-22 14:07:54.337
"
/>
</
appSettings
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.8"
/>
...
...
Tools/UI/sys/wUploadUpdate.Designer.cs
View file @
2fe307ca
...
...
@@ -45,12 +45,12 @@
//
// btnUpload
//
this
.
btnUpload
.
Location
=
new
System
.
Drawing
.
Point
(
80
,
303
);
this
.
btnUpload
.
Location
=
new
System
.
Drawing
.
Point
(
74
,
303
);
this
.
btnUpload
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
4
,
3
,
4
);
this
.
btnUpload
.
Name
=
"btnUpload"
;
this
.
btnUpload
.
Size
=
new
System
.
Drawing
.
Size
(
117
,
33
);
this
.
btnUpload
.
TabIndex
=
1
;
this
.
btnUpload
.
Text
=
"
上传
压缩包"
;
this
.
btnUpload
.
Text
=
"
选择
压缩包"
;
this
.
btnUpload
.
UseVisualStyleBackColor
=
true
;
this
.
btnUpload
.
Click
+=
new
System
.
EventHandler
(
this
.
btnUpload_Click
);
//
...
...
@@ -130,12 +130,12 @@
//
// btnSave
//
this
.
btnSave
.
Location
=
new
System
.
Drawing
.
Point
(
2
69
,
303
);
this
.
btnSave
.
Location
=
new
System
.
Drawing
.
Point
(
2
98
,
303
);
this
.
btnSave
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
4
,
3
,
4
);
this
.
btnSave
.
Name
=
"btnSave"
;
this
.
btnSave
.
Size
=
new
System
.
Drawing
.
Size
(
117
,
33
);
this
.
btnSave
.
TabIndex
=
11
;
this
.
btnSave
.
Text
=
"
开始
更新"
;
this
.
btnSave
.
Text
=
"
上传
更新"
;
this
.
btnSave
.
UseVisualStyleBackColor
=
true
;
this
.
btnSave
.
Click
+=
new
System
.
EventHandler
(
this
.
btnSave_Click
);
//
...
...
Tools/UI/sys/wUploadUpdate.cs
View file @
2fe307ca
...
...
@@ -72,8 +72,12 @@ namespace Tools.UI.sys
//赋值基本信息
var
bytes
=
File
.
ReadAllBytes
(
dlg
.
FileName
);
var
drv
=
this
.
_ds
.
Tables
[
0
].
DefaultView
[
0
];
drv
[
"UName"
]
=
Path
.
GetFileName
(
dlg
.
FileName
);
drv
[
"USize"
]
=
(
bytes
.
Length
/
1000
/
1000
).
ToString
();
var
name
=
Path
.
GetFileName
(
dlg
.
FileName
);
var
size
=
(
bytes
.
Length
/
1000
M
/
1000
M
).
ToString
(
"0.##"
);
this
.
tbUName
.
Text
=
name
;
this
.
tbUSize
.
Text
=
size
;
drv
[
"UName"
]
=
name
;
drv
[
"USize"
]
=
size
;
drv
[
"UData"
]
=
bytes
;
drv
.
EndEdit
();
//上传成功,更新图片
...
...
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