Commit 2fe307ca authored by tr's avatar tr

1、工具平台:自动更新界面优化

parent 6b711b8f
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<appSettings> <appSettings>
<add key="UpdateTime" value="" /> <add key="UpdateTime" value="2021-06-22 14:07:54.337" />
</appSettings> </appSettings>
<startup> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
......
...@@ -45,12 +45,12 @@ ...@@ -45,12 +45,12 @@
// //
// btnUpload // 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.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.btnUpload.Name = "btnUpload"; this.btnUpload.Name = "btnUpload";
this.btnUpload.Size = new System.Drawing.Size(117, 33); this.btnUpload.Size = new System.Drawing.Size(117, 33);
this.btnUpload.TabIndex = 1; this.btnUpload.TabIndex = 1;
this.btnUpload.Text = "上传压缩包"; this.btnUpload.Text = "选择压缩包";
this.btnUpload.UseVisualStyleBackColor = true; this.btnUpload.UseVisualStyleBackColor = true;
this.btnUpload.Click += new System.EventHandler(this.btnUpload_Click); this.btnUpload.Click += new System.EventHandler(this.btnUpload_Click);
// //
...@@ -130,12 +130,12 @@ ...@@ -130,12 +130,12 @@
// //
// btnSave // btnSave
// //
this.btnSave.Location = new System.Drawing.Point(269, 303); this.btnSave.Location = new System.Drawing.Point(298, 303);
this.btnSave.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.btnSave.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.btnSave.Name = "btnSave"; this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(117, 33); this.btnSave.Size = new System.Drawing.Size(117, 33);
this.btnSave.TabIndex = 11; this.btnSave.TabIndex = 11;
this.btnSave.Text = "开始更新"; this.btnSave.Text = "上传更新";
this.btnSave.UseVisualStyleBackColor = true; this.btnSave.UseVisualStyleBackColor = true;
this.btnSave.Click += new System.EventHandler(this.btnSave_Click); this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
// //
......
...@@ -72,8 +72,12 @@ namespace Tools.UI.sys ...@@ -72,8 +72,12 @@ namespace Tools.UI.sys
//赋值基本信息 //赋值基本信息
var bytes = File.ReadAllBytes(dlg.FileName); var bytes = File.ReadAllBytes(dlg.FileName);
var drv = this._ds.Tables[0].DefaultView[0]; var drv = this._ds.Tables[0].DefaultView[0];
drv["UName"] = Path.GetFileName(dlg.FileName); var name = Path.GetFileName(dlg.FileName);
drv["USize"] = (bytes.Length / 1000 / 1000).ToString(); var size = (bytes.Length / 1000M / 1000M).ToString("0.##");
this.tbUName.Text = name;
this.tbUSize.Text = size;
drv["UName"] = name;
drv["USize"] = size;
drv["UData"] = bytes; drv["UData"] = bytes;
drv.EndEdit(); drv.EndEdit();
//上传成功,更新图片 //上传成功,更新图片
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment