B70340 2 yıl önce
ebeveyn
işleme
edc4d56b42

BIN
.vs/HX-PGS-UPDATE/FileContentIndex/37889d17-1a65-4eca-8925-c040cf4dba84.vsidx Dosyayı Görüntüle


BIN
.vs/HX-PGS-UPDATE/FileContentIndex/5006153a-dab5-472a-818e-6c0d8f9ed2f4.vsidx Dosyayı Görüntüle


BIN
.vs/HX-PGS-UPDATE/FileContentIndex/5093f1f0-07b7-449a-a8ae-5c7bf86f7dec.vsidx Dosyayı Görüntüle


BIN
.vs/HX-PGS-UPDATE/FileContentIndex/748080ed-c959-42c5-b486-3adde2664b47.vsidx Dosyayı Görüntüle


BIN
.vs/HX-PGS-UPDATE/FileContentIndex/9dddb933-b1d0-4698-9e59-bec981651066.vsidx Dosyayı Görüntüle


.vs/HX-PGS-UPDATE/FileContentIndex/056a1524-2415-4d9f-9e3d-275b008d6041.vsidx → .vs/HX-PGS-UPDATE/FileContentIndex/adee50ef-c22f-435d-bf2b-9b4202fa5801.vsidx Dosyayı Görüntüle


BIN
.vs/HX-PGS-UPDATE/FileContentIndex/d32885e5-a11c-476b-ab0f-4679553be272.vsidx Dosyayı Görüntüle


BIN
.vs/HX-PGS-UPDATE/v17/.suo Dosyayı Görüntüle


+ 99
- 42
HX-PGS-UPDATE/HX-PGS-UPDATE.Designer.vb Dosyayı Görüntüle

27
         Me.ftp清單_dgv = New System.Windows.Forms.DataGridView()
27
         Me.ftp清單_dgv = New System.Windows.Forms.DataGridView()
28
         Me.伺服器區域_cb = New System.Windows.Forms.ComboBox()
28
         Me.伺服器區域_cb = New System.Windows.Forms.ComboBox()
29
         Me.ProgressBar1 = New System.Windows.Forms.ProgressBar()
29
         Me.ProgressBar1 = New System.Windows.Forms.ProgressBar()
30
-        Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
31
-        Me.Timer2 = New System.Windows.Forms.Timer(Me.components)
32
-        Me.Timer3 = New System.Windows.Forms.Timer(Me.components)
33
-        Me.Timer4 = New System.Windows.Forms.Timer(Me.components)
34
-        Me.Timer5 = New System.Windows.Forms.Timer(Me.components)
35
-        Me.Timer6 = New System.Windows.Forms.Timer(Me.components)
36
-        Me.Timer7 = New System.Windows.Forms.Timer(Me.components)
37
-        Me.Timer8 = New System.Windows.Forms.Timer(Me.components)
38
-        Me.Timer9 = New System.Windows.Forms.Timer(Me.components)
39
-        Me.Timer10 = New System.Windows.Forms.Timer(Me.components)
30
+        Me.主程式更新 = New System.Windows.Forms.Timer(Me.components)
31
+        Me.刪除在下載 = New System.Windows.Forms.Timer(Me.components)
32
+        Me.驗證存在1 = New System.Windows.Forms.Timer(Me.components)
33
+        Me.驗證存在2 = New System.Windows.Forms.Timer(Me.components)
34
+        Me.驗證存在3 = New System.Windows.Forms.Timer(Me.components)
35
+        Me.驗證存在4 = New System.Windows.Forms.Timer(Me.components)
36
+        Me.驗證存在5 = New System.Windows.Forms.Timer(Me.components)
37
+        Me.驗證存在6 = New System.Windows.Forms.Timer(Me.components)
38
+        Me.驗證存在7 = New System.Windows.Forms.Timer(Me.components)
39
+        Me.刪除所有檔案 = New System.Windows.Forms.Timer(Me.components)
40
         Me.OK = New System.Windows.Forms.Timer(Me.components)
40
         Me.OK = New System.Windows.Forms.Timer(Me.components)
41
         Me.HX_CL = New System.Windows.Forms.Timer(Me.components)
41
         Me.HX_CL = New System.Windows.Forms.Timer(Me.components)
42
         Me.CheckBox1 = New System.Windows.Forms.CheckBox()
42
         Me.CheckBox1 = New System.Windows.Forms.CheckBox()
50
         Me.CheckBox9 = New System.Windows.Forms.CheckBox()
50
         Me.CheckBox9 = New System.Windows.Forms.CheckBox()
51
         Me.CheckBox10 = New System.Windows.Forms.CheckBox()
51
         Me.CheckBox10 = New System.Windows.Forms.CheckBox()
52
         Me.CheckBox11 = New System.Windows.Forms.CheckBox()
52
         Me.CheckBox11 = New System.Windows.Forms.CheckBox()
53
+        Me.小更新_ch = New System.Windows.Forms.CheckBox()
54
+        Me.中更新_ch = New System.Windows.Forms.CheckBox()
55
+        Me.大更新_ch = New System.Windows.Forms.CheckBox()
56
+        Me.小更新 = New System.Windows.Forms.Timer(Me.components)
57
+        Me.中更新 = New System.Windows.Forms.Timer(Me.components)
58
+        Me.大更新 = New System.Windows.Forms.Timer(Me.components)
53
         CType(Me.ftp清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
59
         CType(Me.ftp清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
54
         Me.SuspendLayout()
60
         Me.SuspendLayout()
55
         '
61
         '
78
         '
84
         '
79
         'ProgressBar1
85
         'ProgressBar1
80
         '
86
         '
81
-        Me.ProgressBar1.Location = New System.Drawing.Point(0, 0)
87
+        Me.ProgressBar1.Location = New System.Drawing.Point(-1, -1)
82
         Me.ProgressBar1.Maximum = 10000
88
         Me.ProgressBar1.Maximum = 10000
83
         Me.ProgressBar1.Name = "ProgressBar1"
89
         Me.ProgressBar1.Name = "ProgressBar1"
84
         Me.ProgressBar1.Size = New System.Drawing.Size(544, 51)
90
         Me.ProgressBar1.Size = New System.Drawing.Size(544, 51)
85
         Me.ProgressBar1.TabIndex = 637
91
         Me.ProgressBar1.TabIndex = 637
86
         '
92
         '
87
-        'Timer1
93
+        '主程式更新
88
         '
94
         '
89
-        Me.Timer1.Interval = 300
95
+        Me.主程式更新.Interval = 300
90
         '
96
         '
91
-        'Timer2
97
+        '刪除在下載
92
         '
98
         '
93
-        Me.Timer2.Interval = 300
99
+        Me.刪除在下載.Interval = 300
94
         '
100
         '
95
-        'Timer3
101
+        '驗證存在1
96
         '
102
         '
97
-        Me.Timer3.Interval = 300
103
+        Me.驗證存在1.Interval = 300
98
         '
104
         '
99
-        'Timer4
105
+        '驗證存在2
100
         '
106
         '
101
-        Me.Timer4.Interval = 300
107
+        Me.驗證存在2.Interval = 300
102
         '
108
         '
103
-        'Timer5
109
+        '驗證存在3
104
         '
110
         '
105
-        Me.Timer5.Interval = 300
111
+        Me.驗證存在3.Interval = 300
106
         '
112
         '
107
-        'Timer6
113
+        '驗證存在4
108
         '
114
         '
109
-        Me.Timer6.Interval = 300
115
+        Me.驗證存在4.Interval = 300
110
         '
116
         '
111
-        'Timer7
117
+        '驗證存在5
112
         '
118
         '
113
-        Me.Timer7.Interval = 300
119
+        Me.驗證存在5.Interval = 300
114
         '
120
         '
115
-        'Timer8
121
+        '驗證存在6
116
         '
122
         '
117
-        Me.Timer8.Interval = 300
123
+        Me.驗證存在6.Interval = 300
118
         '
124
         '
119
-        'Timer9
125
+        '驗證存在7
120
         '
126
         '
121
-        Me.Timer9.Interval = 300
127
+        Me.驗證存在7.Interval = 300
122
         '
128
         '
123
-        'Timer10
129
+        '刪除所有檔案
124
         '
130
         '
125
-        Me.Timer10.Interval = 300
131
+        Me.刪除所有檔案.Interval = 300
126
         '
132
         '
127
         'OK
133
         'OK
128
         '
134
         '
242
         Me.CheckBox11.Text = "OK"
248
         Me.CheckBox11.Text = "OK"
243
         Me.CheckBox11.UseVisualStyleBackColor = True
249
         Me.CheckBox11.UseVisualStyleBackColor = True
244
         '
250
         '
251
+        '小更新_ch
252
+        '
253
+        Me.小更新_ch.AutoSize = True
254
+        Me.小更新_ch.Location = New System.Drawing.Point(16, 82)
255
+        Me.小更新_ch.Name = "小更新_ch"
256
+        Me.小更新_ch.Size = New System.Drawing.Size(62, 20)
257
+        Me.小更新_ch.TabIndex = 649
258
+        Me.小更新_ch.Text = "小更新"
259
+        Me.小更新_ch.UseVisualStyleBackColor = True
260
+        '
261
+        '中更新_ch
262
+        '
263
+        Me.中更新_ch.AutoSize = True
264
+        Me.中更新_ch.Location = New System.Drawing.Point(16, 108)
265
+        Me.中更新_ch.Name = "中更新_ch"
266
+        Me.中更新_ch.Size = New System.Drawing.Size(62, 20)
267
+        Me.中更新_ch.TabIndex = 650
268
+        Me.中更新_ch.Text = "中更新"
269
+        Me.中更新_ch.UseVisualStyleBackColor = True
270
+        '
271
+        '大更新_ch
272
+        '
273
+        Me.大更新_ch.AutoSize = True
274
+        Me.大更新_ch.Location = New System.Drawing.Point(16, 134)
275
+        Me.大更新_ch.Name = "大更新_ch"
276
+        Me.大更新_ch.Size = New System.Drawing.Size(62, 20)
277
+        Me.大更新_ch.TabIndex = 651
278
+        Me.大更新_ch.Text = "大更新"
279
+        Me.大更新_ch.UseVisualStyleBackColor = True
280
+        '
281
+        '小更新
282
+        '
283
+        Me.小更新.Interval = 300
284
+        '
285
+        '中更新
286
+        '
287
+        Me.中更新.Interval = 300
288
+        '
289
+        '大更新
290
+        '
291
+        Me.大更新.Interval = 300
292
+        '
245
         'HX_PGS_UPDATE
293
         'HX_PGS_UPDATE
246
         '
294
         '
247
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
295
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
248
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
296
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
249
-        Me.ClientSize = New System.Drawing.Size(542, 51)
297
+        Me.ClientSize = New System.Drawing.Size(542, 50)
250
         Me.ControlBox = False
298
         Me.ControlBox = False
299
+        Me.Controls.Add(Me.大更新_ch)
300
+        Me.Controls.Add(Me.中更新_ch)
301
+        Me.Controls.Add(Me.小更新_ch)
251
         Me.Controls.Add(Me.CheckBox11)
302
         Me.Controls.Add(Me.CheckBox11)
252
         Me.Controls.Add(Me.CheckBox10)
303
         Me.Controls.Add(Me.CheckBox10)
253
         Me.Controls.Add(Me.CheckBox9)
304
         Me.Controls.Add(Me.CheckBox9)
278
     Friend WithEvents ftp清單_dgv As DataGridView
329
     Friend WithEvents ftp清單_dgv As DataGridView
279
     Friend WithEvents 伺服器區域_cb As ComboBox
330
     Friend WithEvents 伺服器區域_cb As ComboBox
280
     Friend WithEvents ProgressBar1 As ProgressBar
331
     Friend WithEvents ProgressBar1 As ProgressBar
281
-    Friend WithEvents Timer1 As Timer
282
-    Friend WithEvents Timer2 As Timer
283
-    Friend WithEvents Timer3 As Timer
284
-    Friend WithEvents Timer4 As Timer
285
-    Friend WithEvents Timer5 As Timer
286
-    Friend WithEvents Timer6 As Timer
287
-    Friend WithEvents Timer7 As Timer
288
-    Friend WithEvents Timer8 As Timer
289
-    Friend WithEvents Timer9 As Timer
290
-    Friend WithEvents Timer10 As Timer
332
+    Friend WithEvents 主程式更新 As Timer
333
+    Friend WithEvents 刪除在下載 As Timer
334
+    Friend WithEvents 驗證存在1 As Timer
335
+    Friend WithEvents 驗證存在2 As Timer
336
+    Friend WithEvents 驗證存在3 As Timer
337
+    Friend WithEvents 驗證存在4 As Timer
338
+    Friend WithEvents 驗證存在5 As Timer
339
+    Friend WithEvents 驗證存在6 As Timer
340
+    Friend WithEvents 驗證存在7 As Timer
341
+    Friend WithEvents 刪除所有檔案 As Timer
291
     Friend WithEvents OK As Timer
342
     Friend WithEvents OK As Timer
292
     Friend WithEvents HX_CL As Timer
343
     Friend WithEvents HX_CL As Timer
293
     Friend WithEvents CheckBox1 As CheckBox
344
     Friend WithEvents CheckBox1 As CheckBox
301
     Friend WithEvents CheckBox9 As CheckBox
352
     Friend WithEvents CheckBox9 As CheckBox
302
     Friend WithEvents CheckBox10 As CheckBox
353
     Friend WithEvents CheckBox10 As CheckBox
303
     Friend WithEvents CheckBox11 As CheckBox
354
     Friend WithEvents CheckBox11 As CheckBox
355
+    Friend WithEvents 小更新_ch As CheckBox
356
+    Friend WithEvents 中更新_ch As CheckBox
357
+    Friend WithEvents 大更新_ch As CheckBox
358
+    Friend WithEvents 小更新 As Timer
359
+    Friend WithEvents 中更新 As Timer
360
+    Friend WithEvents 大更新 As Timer
304
 End Class
361
 End Class

+ 33
- 21
HX-PGS-UPDATE/HX-PGS-UPDATE.resx Dosyayı Görüntüle

117
   <resheader name="writer">
117
   <resheader name="writer">
118
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
118
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
   </resheader>
119
   </resheader>
120
-  <metadata name="Timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
120
+  <metadata name="主程式更新.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
121
     <value>17, 17</value>
121
     <value>17, 17</value>
122
   </metadata>
122
   </metadata>
123
-  <metadata name="Timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
124
-    <value>109, 17</value>
123
+  <metadata name="刪除在下載.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
124
+    <value>15, 48</value>
125
   </metadata>
125
   </metadata>
126
-  <metadata name="Timer3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
127
-    <value>201, 17</value>
126
+  <metadata name="驗證存在1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
127
+    <value>126, 52</value>
128
   </metadata>
128
   </metadata>
129
-  <metadata name="Timer4.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
130
-    <value>293, 17</value>
129
+  <metadata name="驗證存在2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
130
+    <value>239, 19</value>
131
   </metadata>
131
   </metadata>
132
-  <metadata name="Timer5.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
133
-    <value>385, 17</value>
132
+  <metadata name="驗證存在3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
133
+    <value>239, 52</value>
134
   </metadata>
134
   </metadata>
135
-  <metadata name="Timer6.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
136
-    <value>477, 17</value>
135
+  <metadata name="驗證存在4.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
136
+    <value>340, 20</value>
137
   </metadata>
137
   </metadata>
138
-  <metadata name="Timer7.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
139
-    <value>569, 17</value>
138
+  <metadata name="驗證存在5.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
139
+    <value>338, 55</value>
140
   </metadata>
140
   </metadata>
141
-  <metadata name="Timer8.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
142
-    <value>661, 17</value>
141
+  <metadata name="驗證存在6.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
142
+    <value>442, 19</value>
143
   </metadata>
143
   </metadata>
144
-  <metadata name="Timer9.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
145
-    <value>753, 17</value>
144
+  <metadata name="驗證存在7.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
145
+    <value>441, 56</value>
146
   </metadata>
146
   </metadata>
147
-  <metadata name="Timer10.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
148
-    <value>845, 17</value>
147
+  <metadata name="刪除所有檔案.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
148
+    <value>125, 18</value>
149
   </metadata>
149
   </metadata>
150
   <metadata name="OK.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
150
   <metadata name="OK.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
151
-    <value>1436, 20</value>
151
+    <value>554, 21</value>
152
   </metadata>
152
   </metadata>
153
   <metadata name="HX_CL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
153
   <metadata name="HX_CL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
154
-    <value>1505, 20</value>
154
+    <value>623, 21</value>
155
+  </metadata>
156
+  <metadata name="小更新.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
157
+    <value>562, 60</value>
158
+  </metadata>
159
+  <metadata name="中更新.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
160
+    <value>654, 60</value>
161
+  </metadata>
162
+  <metadata name="大更新.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
163
+    <value>746, 60</value>
164
+  </metadata>
165
+  <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
166
+    <value>301</value>
155
   </metadata>
167
   </metadata>
156
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
168
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
157
   <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
169
   <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

+ 167
- 91
HX-PGS-UPDATE/HX-PGS-UPDATE.vb Dosyayı Görüntüle

1
 Imports System.IO
1
 Imports System.IO
2
 Imports System.Net
2
 Imports System.Net
3
+Imports System.Text
3
 Imports System.Net.NetworkInformation
4
 Imports System.Net.NetworkInformation
4
 Public Class HX_PGS_UPDATE
5
 Public Class HX_PGS_UPDATE
5
     ReadOnly ds2 As New DataSet
6
     ReadOnly ds2 As New DataSet
6
     ReadOnly computerProperties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
7
     ReadOnly computerProperties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
7
     ReadOnly IPEndPoint() As EndPoint = computerProperties.GetActiveTcpListeners()
8
     ReadOnly IPEndPoint() As EndPoint = computerProperties.GetActiveTcpListeners()
8
     Dim myIPEndPoint As IPEndPoint
9
     Dim myIPEndPoint As IPEndPoint
9
-    Dim 內網線路 As Boolean : Dim 開發線路, OK1, OK2, OK3, OK4, OK5, OK6, OK7, OK8, OK9, OK10 As Boolean
10
+    Dim 內網線路, 開發線路, 刪除完成, OK1, OK2, OK3, OK4, OK5, OK6, OK7, OK8, OK9, OK10 As Boolean
10
     Dim Str As String = Application.StartupPath
11
     Dim Str As String = Application.StartupPath
11
     Private Sub Set_清單1()
12
     Private Sub Set_清單1()
12
         ftp清單_dgv.DataSource = Nothing : ds2.Clear()
13
         ftp清單_dgv.DataSource = Nothing : ds2.Clear()
22
     End Sub
23
     End Sub
23
     Private Sub 伺服器區域_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 伺服器區域_cb.SelectedIndexChanged
24
     Private Sub 伺服器區域_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 伺服器區域_cb.SelectedIndexChanged
24
         '-----------------------確認登入伺服器位置-----------------------------------------------------------------------------------------------------------------------------------------
25
         '-----------------------確認登入伺服器位置-----------------------------------------------------------------------------------------------------------------------------------------
25
-        If SQL_連線狀態模組2.ConnectTest1("192.168.0.201,2433") = True Then
26
+        If SQL_連線狀態模組2.ConnectTest2("192.168.0.201,2433") = True Then
26
             登入人IP = "192.168.0.201,2433"
27
             登入人IP = "192.168.0.201,2433"
27
         Else
28
         Else
28
             If SQL_連線狀態模組1.ConnectTest1("103.231.201.230,2433") = True Then
29
             If SQL_連線狀態模組1.ConnectTest1("103.231.201.230,2433") = True Then
40
         ElseIf 登入人IP = "103.144.143.182,2433" Then : Target = "ftp://103.144.143.182:2121/"
41
         ElseIf 登入人IP = "103.144.143.182,2433" Then : Target = "ftp://103.144.143.182:2121/"
41
         End If : FTP帳號 = "" : FTP密碼 = "" : FTP物理位置 = "C:\FTP\HXPGS\"
42
         End If : FTP帳號 = "" : FTP密碼 = "" : FTP物理位置 = "C:\FTP\HXPGS\"
42
 
43
 
44
+        '----------判斷是否有更新指定檔案-------------------------------------------------------------------------------------
45
+        Dim strDirName As String : Dim Strs As String = Application.StartupPath
46
+        If File.Exists(Strs & "\HXUPDATE.txt") Then : Else
47
+            strDirName = Strs & "\HXUPDATE.txt"
48
+            Try
49
+                Using fs As IO.FileStream = New IO.FileStream(strDirName, FileMode.Append)
50
+                    Using sw As StreamWriter = New StreamWriter(fs, Encoding.Default)
51
+                        Dim strk As String = "3"
52
+                        sw.WriteLine(strk)   '插入一整行
53
+                        sw.Flush()
54
+                    End Using
55
+                End Using
56
+            Catch ex As Exception
57
+            End Try
58
+        End If
59
+
43
         Set_清單1()
60
         Set_清單1()
44
         Dim HH As String = ""
61
         Dim HH As String = ""
45
         For i As Integer = 0 To ftp清單_dgv.Rows.Count - 1
62
         For i As Integer = 0 To ftp清單_dgv.Rows.Count - 1
48
         Next
65
         Next
49
         Target1 = Target & AA(0) & "/"
66
         Target1 = Target & AA(0) & "/"
50
         Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30)
67
         Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30)
68
+
69
+        '----------讀取更新指定檔案-------------------------------------------------------------------------------------
70
+        Dim Str As String = Application.StartupPath
71
+        If File.Exists(Str + "\HXUPDATE.txt") Then
72
+            Dim filereader = My.Computer.FileSystem.OpenTextFileReader(Str + "\HXUPDATE.txt", System.Text.Encoding.Default)
73
+            Dim Text As String = "" : Dim line As String = filereader.ReadLine()
74
+            While Not (line Is Nothing) : Text = Text & line & vbCrLf : line = filereader.ReadLine() : End While : filereader.Close()
75
+            If Strings.Left(Text, 1) = "1" Then
76
+                小更新_ch.Checked = True : 中更新_ch.Checked = False : 大更新_ch.Checked = False
77
+            ElseIf Strings.Left(Text, 1) = "2" Then
78
+                小更新_ch.Checked = False : 中更新_ch.Checked = True : 大更新_ch.Checked = False
79
+            ElseIf Strings.Left(Text, 1) = "3" Then
80
+                小更新_ch.Checked = False : 中更新_ch.Checked = False : 大更新_ch.Checked = True
81
+            End If
82
+        End If
51
     End Sub
83
     End Sub
52
     Private Sub HX_PGS_UPDATE_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
84
     Private Sub HX_PGS_UPDATE_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
53
-        '--- 刪除在下載---------------------------------------------------------------------------------------------------------------------------
54
-        Timer1.Enabled = True : Timer2.Enabled = True
55
-        '--- 比對下載---------------------------------------------------------------------------------------------------------------------------
56
-        Timer3.Enabled = True : Timer4.Enabled = True : Timer5.Enabled = True : Timer6.Enabled = True : Timer7.Enabled = True
57
-        Timer8.Enabled = True : Timer9.Enabled = True : Timer10.Enabled = True
58
-
85
+        If 小更新_ch.Checked = True Then
86
+            刪除完成 = True : 小更新.Enabled = True
87
+        ElseIf 中更新_ch.Checked = True Then
88
+            刪除完成 = True : 中更新.Enabled = True
89
+        ElseIf 大更新_ch.Checked = True Then
90
+            刪除所有檔案.Enabled = True : 大更新.Enabled = True
91
+        End If
59
         '--- 開啟專案---------------------------------------------------------------------------------------------------------------------------
92
         '--- 開啟專案---------------------------------------------------------------------------------------------------------------------------
60
         OK.Enabled = True
93
         OK.Enabled = True
61
     End Sub
94
     End Sub
95
+    Private Sub 小更新_Tick(sender As Object, e As EventArgs) Handles 小更新.Tick
96
+        If 刪除完成 = True Then
97
+            小更新.Enabled = False
98
+            主程式更新.Enabled = True : OK2 = True : OK3 = True : OK4 = True : OK5 = True : OK6 = True : OK7 = True : OK8 = True : OK9 = True : OK10 = True
99
+        End If
100
+    End Sub
101
+    Private Sub 中更新_Tick(sender As Object, e As EventArgs) Handles 中更新.Tick
102
+        If 刪除完成 = True Then
103
+            中更新.Enabled = False
104
+            '--- 刪除在下載---------------------------------------------------------------------------------------------------------------------------
105
+            主程式更新.Enabled = True : 刪除在下載.Enabled = True
106
+            '--- 比對下載---------------------------------------------------------------------------------------------------------------------------
107
+            驗證存在1.Enabled = True : 驗證存在2.Enabled = True : 驗證存在3.Enabled = True : 驗證存在4.Enabled = True : 驗證存在5.Enabled = True
108
+            驗證存在6.Enabled = True : 驗證存在7.Enabled = True : OK10 = True
109
+        End If
110
+    End Sub
111
+    Private Sub 大更新_Tick(sender As Object, e As EventArgs) Handles 大更新.Tick
112
+        If 刪除完成 = True Then
113
+            大更新.Enabled = False
114
+            '--- 刪除在下載---------------------------------------------------------------------------------------------------------------------------
115
+            主程式更新.Enabled = True : 刪除在下載.Enabled = True
116
+            '--- 比對下載---------------------------------------------------------------------------------------------------------------------------
117
+            驗證存在1.Enabled = True : 驗證存在2.Enabled = True : 驗證存在3.Enabled = True : 驗證存在4.Enabled = True : 驗證存在5.Enabled = True
118
+            驗證存在6.Enabled = True : 驗證存在7.Enabled = True
119
+        End If
120
+    End Sub
62
     Public Sub Delay(ByRef Interval As Double)  'Interval单位为毫秒
121
     Public Sub Delay(ByRef Interval As Double)  'Interval单位为毫秒
63
         Dim time As DateTime = DateTime.Now
122
         Dim time As DateTime = DateTime.Now
64
         Dim Span As Double = Interval * 1234
123
         Dim Span As Double = Interval * 1234
68
     End Sub
127
     End Sub
69
     Private Sub OK_Tick(sender As Object, e As EventArgs) Handles OK.Tick
128
     Private Sub OK_Tick(sender As Object, e As EventArgs) Handles OK.Tick
70
         If OK1 = True And OK2 = True And OK3 = True And OK4 = True And OK5 = True And OK6 = True And OK7 = True And OK8 = True And OK9 = True And OK10 = True Then
129
         If OK1 = True And OK2 = True And OK3 = True And OK4 = True And OK5 = True And OK6 = True And OK7 = True And OK8 = True And OK9 = True And OK10 = True Then
71
-            OK.Enabled = False : CheckBox11.Checked = True : Shell(Str + "\HX-PGS-ERP-SYS.exe", vbNormalFocus) : Me.Close()
130
+            OK.Enabled = False : CheckBox11.Checked = True
131
+            If File.Exists(Str + "\HXUPDATE.txt") Then : File.Delete(Str + "\HXUPDATE.txt") : End If
132
+            Shell(Str + "\HX-PGS-ERP-SYS.exe", vbNormalFocus) : Me.Close()
72
         End If
133
         End If
73
     End Sub
134
     End Sub
74
-    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
135
+    Private Sub 主程式更新_Tick(sender As Object, e As EventArgs) Handles 主程式更新.Tick
75
         Dim 已開啟 As Boolean = False
136
         Dim 已開啟 As Boolean = False
76
         Dim Strs As String = Application.StartupPath
137
         Dim Strs As String = Application.StartupPath
77
         If File.Exists(My.Computer.FileSystem.SpecialDirectories.Desktop & "\HX-PGS-ERP-SYS.exe") Then
138
         If File.Exists(My.Computer.FileSystem.SpecialDirectories.Desktop & "\HX-PGS-ERP-SYS.exe") Then
83
                 End If
144
                 End If
84
             Next
145
             Next
85
             If 已開啟 = False Then
146
             If 已開啟 = False Then
86
-                Timer1.Enabled = False
147
+                主程式更新.Enabled = False
87
                 MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-ERP-SYS.exe") Then : File.Delete(Str + "\HX-PGS-ERP-SYS.exe") : End If
148
                 MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-ERP-SYS.exe") Then : File.Delete(Str + "\HX-PGS-ERP-SYS.exe") : End If
88
                 My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-ERP-SYS.exe", Str + "\HX-PGS-ERP-SYS.exe")
149
                 My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-ERP-SYS.exe", Str + "\HX-PGS-ERP-SYS.exe")
89
                 OK1 = True : CheckBox1.Checked = True
150
                 OK1 = True : CheckBox1.Checked = True
97
                 End If
158
                 End If
98
             Next
159
             Next
99
             If 已開啟 = False Then
160
             If 已開啟 = False Then
100
-                Timer1.Enabled = False
161
+                主程式更新.Enabled = False
101
                 MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-ERP-SYS.exe") Then : File.Delete(Str + "\HX-PGS-ERP-SYS.exe") : End If
162
                 MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-ERP-SYS.exe") Then : File.Delete(Str + "\HX-PGS-ERP-SYS.exe") : End If
102
                 My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-ERP-SYS.exe", Str + "\HX-PGS-ERP-SYS.exe")
163
                 My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-ERP-SYS.exe", Str + "\HX-PGS-ERP-SYS.exe")
103
                 OK1 = True : CheckBox1.Checked = True
164
                 OK1 = True : CheckBox1.Checked = True
104
             End If
165
             End If
105
         End If
166
         End If
106
     End Sub
167
     End Sub
107
-    Private Sub Timer2_Tick(sender As Object, e As EventArgs) Handles Timer2.Tick
108
-        Timer2.Enabled = False
168
+    Private Sub 刪除在下載_Tick(sender As Object, e As EventArgs) Handles 刪除在下載.Tick
169
+        刪除在下載.Enabled = False
109
         MyModule1.進度條() : If File.Exists(Str + "\HX01.docx") Then : File.Delete(Str + "\HX01.docx") : End If
170
         MyModule1.進度條() : If File.Exists(Str + "\HX01.docx") Then : File.Delete(Str + "\HX01.docx") : End If
110
         MyModule1.進度條() : If File.Exists(Str + "\PGS01.docx") Then : File.Delete(Str + "\PGS01.docx") : End If
171
         MyModule1.進度條() : If File.Exists(Str + "\PGS01.docx") Then : File.Delete(Str + "\PGS01.docx") : End If
111
         MyModule1.進度條() : If File.Exists(Str + "\LIN HSING HAO.txt") Then : File.Delete(Str + "\LIN HSING HAO.txt") : End If
172
         MyModule1.進度條() : If File.Exists(Str + "\LIN HSING HAO.txt") Then : File.Delete(Str + "\LIN HSING HAO.txt") : End If
173
+        MyModule1.進度條() : If File.Exists(Str + "\Interop.SHDocVw.dll") Then : File.Delete(Str + "\Interop.SHDocVw.dll") : End If
174
+        MyModule1.進度條() : If File.Exists(Str + "\AxInterop.SHDocVw.dll") Then : File.Delete(Str + "\AxInterop.SHDocVw.dll") : End If
175
+        MyModule1.進度條() : If File.Exists(Str + "\AxInterop.MSHTML.dll") Then : File.Delete(Str + "\\AxInterop.MSHTML.dll") : End If
176
+        My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "AxInterop.MSHTML.dll", Str + "\AxInterop.MSHTML.dll") : Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "AxInterop.MSHTML"
177
+        My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "AxInterop.SHDocVw.dll", Str + "\AxInterop.SHDocVw.dll") : Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "AxInterop.SHDocVw"
178
+        My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Interop.SHDocVw.dll", Str + "\Interop.SHDocVw.dll") : Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Interop.SHDocVw"
112
         My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX01.docx", Str + "\HX01.docx") : Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "HX01"
179
         My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX01.docx", Str + "\HX01.docx") : Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "HX01"
113
         My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "PGS01.docx", Str + "\PGS01.docx") : Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "PGS01"
180
         My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "PGS01.docx", Str + "\PGS01.docx") : Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "PGS01"
114
         My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "LIN HSING HAO.txt", Str + "\LIN HSING HAO.txt") : Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "LIN HSING HAO"
181
         My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "LIN HSING HAO.txt", Str + "\LIN HSING HAO.txt") : Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "LIN HSING HAO"
115
         OK2 = True : CheckBox2.Checked = True
182
         OK2 = True : CheckBox2.Checked = True
116
     End Sub
183
     End Sub
117
-    Private Sub Timer3_Tick(sender As Object, e As EventArgs) Handles Timer3.Tick
118
-        Timer3.Enabled = False
184
+    Private Sub Timer3_Tick(sender As Object, e As EventArgs) Handles 驗證存在1.Tick
185
+        驗證存在1.Enabled = False
119
         MyModule1.進度條() : If Dir(Str + "\Theme", vbDirectory) <> "" Then : Else : MkDir(Str + "\Theme") : End If
186
         MyModule1.進度條() : If Dir(Str + "\Theme", vbDirectory) <> "" Then : Else : MkDir(Str + "\Theme") : End If
120
         MyModule1.進度條() : If File.Exists(Str + "\Theme\excel_chinese.xml") Then : Else
187
         MyModule1.進度條() : If File.Exists(Str + "\Theme\excel_chinese.xml") Then : Else
121
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "excel_chinese.xml", Str + "\Theme\excel_chinese.xml")
188
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "excel_chinese.xml", Str + "\Theme\excel_chinese.xml")
134
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "word_english" : End If
201
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "word_english" : End If
135
         OK3 = True : CheckBox3.Checked = True
202
         OK3 = True : CheckBox3.Checked = True
136
     End Sub
203
     End Sub
137
-    Private Sub Timer4_Tick(sender As Object, e As EventArgs) Handles Timer4.Tick
138
-        Timer4.Enabled = False
204
+    Private Sub Timer4_Tick(sender As Object, e As EventArgs) Handles 驗證存在2.Tick
205
+        驗證存在2.Enabled = False
139
         MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-Message.exe") Then : Else
206
         MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-Message.exe") Then : Else
140
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-Message.exe", Str + "\HX-PGS-Message.exe")
207
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-Message.exe", Str + "\HX-PGS-Message.exe")
141
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "HX-PGS-Message" : End If
208
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "HX-PGS-Message" : End If
148
         MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-ERP-SYS.xml") Then : Else
215
         MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-ERP-SYS.xml") Then : Else
149
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-ERP-SYS.xml", Str + "\HX-PGS-ERP-SYS.xml")
216
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-ERP-SYS.xml", Str + "\HX-PGS-ERP-SYS.xml")
150
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "HX-PGS-ERP-SYS" : End If
217
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "HX-PGS-ERP-SYS" : End If
151
-        MyModule1.進度條() : If File.Exists(Str + "\Interop.SHDocVw.dll") Then : Else
152
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Interop.SHDocVw.dll", Str + "\Interop.SHDocVw.dll")
153
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Interop.SHDocVw" : End If
154
-        MyModule1.進度條() : If File.Exists(Str + "\AxInterop.MSHTML.dll") Then : Else
155
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "AxInterop.MSHTML.dll", Str + "\AxInterop.MSHTML.dll")
156
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "AxInterop.MSHTML" : End If
157
-        MyModule1.進度條() : If File.Exists(Str + "\AxInterop.SHDocVw.dll") Then : Else
158
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "AxInterop.SHDocVw.dll", Str + "\AxInterop.SHDocVw.dll")
159
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "AxInterop.SHDocVw" : End If
160
         MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-ERP-SYS.exe.config") Then : Else
218
         MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-ERP-SYS.exe.config") Then : Else
161
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-ERP-SYS.exe.config", Str + "\HX-PGS-ERP-SYS.exe.config")
219
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "HX-PGS-ERP-SYS.exe.config", Str + "\HX-PGS-ERP-SYS.exe.config")
162
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "HX-PGS-ERP-SYS.exe.config" : End If
220
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "HX-PGS-ERP-SYS.exe.config" : End If
171
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "ch" : End If
229
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "ch" : End If
172
         OK4 = True : CheckBox4.Checked = True
230
         OK4 = True : CheckBox4.Checked = True
173
     End Sub
231
     End Sub
174
-    Private Sub Timer5_Tick(sender As Object, e As EventArgs) Handles Timer5.Tick
175
-        Timer5.Enabled = False
232
+    Private Sub Timer5_Tick(sender As Object, e As EventArgs) Handles 驗證存在3.Tick
233
+        驗證存在3.Enabled = False
176
         MyModule1.進度條() : If File.Exists(Str + "\DotNetBarcode.dll") Then : Else
234
         MyModule1.進度條() : If File.Exists(Str + "\DotNetBarcode.dll") Then : Else
177
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "DotNetBarcode.dll", Str + "\DotNetBarcode.dll")
235
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "DotNetBarcode.dll", Str + "\DotNetBarcode.dll")
178
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "DotNetBarcode" : End If
236
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "DotNetBarcode" : End If
211
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "System.Buffers" : End If
269
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "System.Buffers" : End If
212
         OK5 = True : CheckBox5.Checked = True
270
         OK5 = True : CheckBox5.Checked = True
213
     End Sub
271
     End Sub
214
-    Private Sub Timer6_Tick(sender As Object, e As EventArgs) Handles Timer6.Tick
215
-        Timer6.Enabled = False
272
+    Private Sub Timer6_Tick(sender As Object, e As EventArgs) Handles 驗證存在4.Tick
273
+        驗證存在4.Enabled = False
216
         MyModule1.進度條() : If File.Exists(Str + "\System.Buffers.xml") Then : Else
274
         MyModule1.進度條() : If File.Exists(Str + "\System.Buffers.xml") Then : Else
217
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Buffers.xml", Str + "\System.Buffers.xml")
275
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Buffers.xml", Str + "\System.Buffers.xml")
218
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "System.Buffers" : End If
276
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "System.Buffers" : End If
240
         MyModule1.進度條() : If File.Exists(Str + "\System.Text.Encodings.Web.xml") Then : Else
298
         MyModule1.進度條() : If File.Exists(Str + "\System.Text.Encodings.Web.xml") Then : Else
241
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Text.Encodings.Web.xml", Str + "\System.Text.Encodings.Web.xml")
299
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "System.Text.Encodings.Web.xml", Str + "\System.Text.Encodings.Web.xml")
242
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "System.Text.Encodings.Web" : End If
300
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "System.Text.Encodings.Web" : End If
243
-        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadToastNotification.dll") Then : Else
244
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadToastNotification.dll", Str + "\Telerik.WinControls.RadToastNotification.dll")
245
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls.RadToastNotification" : End If
246
-        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadToastNotification.xml") Then : Else
247
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadToastNotification.xml", Str + "\Telerik.WinControls.RadToastNotification.xml")
248
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls.RadToastNotification" : End If
249
         MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.SyntaxEditor.dll") Then : Else
301
         MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.SyntaxEditor.dll") Then : Else
250
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.SyntaxEditor.dll", Str + "\Telerik.WinControls.SyntaxEditor.dll")
302
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.SyntaxEditor.dll", Str + "\Telerik.WinControls.SyntaxEditor.dll")
251
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls.SyntaxEditor" : End If
303
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls.SyntaxEditor" : End If
252
         OK6 = True : CheckBox6.Checked = True
304
         OK6 = True : CheckBox6.Checked = True
253
     End Sub
305
     End Sub
254
-    Private Sub Timer7_Tick(sender As Object, e As EventArgs) Handles Timer7.Tick
255
-        Timer7.Enabled = False
306
+    Private Sub Timer7_Tick(sender As Object, e As EventArgs) Handles 驗證存在5.Tick
307
+        驗證存在5.Enabled = False
256
         MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.SyntaxEditor.xml") Then : Else
308
         MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.SyntaxEditor.xml") Then : Else
257
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.SyntaxEditor.xml", Str + "\Telerik.WinControls.SyntaxEditor.xml")
309
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.SyntaxEditor.xml", Str + "\Telerik.WinControls.SyntaxEditor.xml")
258
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls.SyntaxEditor" : End If
310
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls.SyntaxEditor" : End If
259
-        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadWebCam.dll") Then : Else
260
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadWebCam.dll", Str + "\Telerik.WinControls.RadWebCam.dll")
261
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls.RadWebCam" : End If
262
-        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadWebCam.xml") Then : Else
263
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadWebCam.xml", Str + "\Telerik.WinControls.RadWebCam.xml")
264
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls.SyntaxEditor" : End If
265
-        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.GridView.dll") Then : Else
266
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.GridView.dll", Str + "\Telerik.WinControls.GridView.dll")
267
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls.GridView" : End If
268
-        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadMap.dll") Then : Else
269
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadMap.dll", Str + "\Telerik.WinControls.RadMap.dll")
270
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls.RadMap" : End If
271
-        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadMap.xml") Then : Else
272
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.RadMap.xml", Str + "\Telerik.WinControls.RadMap.xml")
273
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls.RadMap" : End If
274
-        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.GridView.xml") Then : Else
275
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.GridView.xml", Str + "\Telerik.WinControls.GridView.xml")
276
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls.GridView" : End If
277
-        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.ChartView.dll") Then : Else
278
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.ChartView.dll", Str + "\Telerik.WinControls.ChartView.dll")
279
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls.ChartView" : End If
280
-        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.ChartView.xml") Then : Else
281
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.ChartView.xml", Str + "\Telerik.WinControls.ChartView.xml")
282
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls.ChartView" : End If
283
         MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.UI.dll") Then : Else
311
         MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.UI.dll") Then : Else
284
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.UI.dll", Str + "\Telerik.WinControls.UI.dll")
312
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.UI.dll", Str + "\Telerik.WinControls.UI.dll")
285
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls.UI" : End If
313
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls.UI" : End If
289
         MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.dll") Then : Else
317
         MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.dll") Then : Else
290
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.dll", Str + "\Telerik.WinControls.dll")
318
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.dll", Str + "\Telerik.WinControls.dll")
291
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls" : End If
319
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls" : End If
320
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Documents.Fixed.dll") Then : Else
321
+            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.Windows.Documents.Fixed.dll", Str + "\Telerik.Windows.Documents.Fixed.dll")
322
+            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.Windows.Documents.Fixed" : End If
323
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Documents.Fixed.xml") Then : Else
324
+            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.Windows.Documents.Fixed.xml", Str + "\Telerik.Windows.Documents.Fixed.xml")
325
+            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.Windows.Documents.Fixed" : End If
326
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Zip.dll") Then : Else
327
+            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.Windows.Zip.dll", Str + "\Telerik.Windows.Zip.dll")
328
+            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.Windows.Zip" : End If
329
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Zip.xml") Then : Else
330
+            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.Windows.Zip.xml", Str + "\Telerik.Windows.Zip.xml")
331
+            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.Windows.Zip" : End If
292
         OK7 = True : CheckBox7.Checked = True
332
         OK7 = True : CheckBox7.Checked = True
293
     End Sub
333
     End Sub
294
-    Private Sub Timer8_Tick(sender As Object, e As EventArgs) Handles Timer8.Tick
295
-        Timer8.Enabled = False
334
+    Private Sub Timer8_Tick(sender As Object, e As EventArgs) Handles 驗證存在6.Tick
335
+        驗證存在6.Enabled = False
296
         MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.xml") Then : Else
336
         MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.xml") Then : Else
297
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.xml", Str + "\Telerik.WinControls.xml")
337
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.WinControls.xml", Str + "\Telerik.WinControls.xml")
298
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls" : End If
338
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.WinControls" : End If
299
         MyModule1.進度條() : If File.Exists(Str + "\TelerikCommon.dll") Then : Else
339
         MyModule1.進度條() : If File.Exists(Str + "\TelerikCommon.dll") Then : Else
300
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "TelerikCommon.dll", Str + "\TelerikCommon.dll")
340
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "TelerikCommon.dll", Str + "\TelerikCommon.dll")
301
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "TelerikCommon" : End If
341
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "TelerikCommon" : End If
302
-        MyModule1.進度條() : If File.Exists(Str + "\MediaFoundation.dll") Then : Else
303
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "MediaFoundation.dll", Str + "\MediaFoundation.dll")
304
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "MediaFoundation" : End If
305
-        MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.MediaFoundation.dll") Then : Else
306
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.Windows.MediaFoundation.dll", Str + "\Telerik.Windows.MediaFoundation.dll")
307
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.Windows.MediaFoundation" : End If
308
-        MyModule1.進度條() : If File.Exists(Str + "\Microsoft.Toolkit.Uwp.Notifications.dll") Then : Else
309
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Microsoft.Toolkit.Uwp.Notifications.dll", Str + "\Microsoft.Toolkit.Uwp.Notifications.dll")
310
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Microsoft.Toolkit.Uwp.Notifications" : End If
311
         MyModule1.進度條() : If File.Exists(Str + "\SuperDataGrid.dll") Then : Else
342
         MyModule1.進度條() : If File.Exists(Str + "\SuperDataGrid.dll") Then : Else
312
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "SuperDataGrid.dll", Str + "\SuperDataGrid.dll")
343
             My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "SuperDataGrid.dll", Str + "\SuperDataGrid.dll")
313
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "SuperDataGrid" : End If
344
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "SuperDataGrid" : End If
331
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.Windows.Documents.Core" : End If
362
             Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.Windows.Documents.Core" : End If
332
         OK8 = True : CheckBox8.Checked = True
363
         OK8 = True : CheckBox8.Checked = True
333
     End Sub
364
     End Sub
334
-    Private Sub Timer9_Tick(sender As Object, e As EventArgs) Handles Timer9.Tick
335
-        Timer9.Enabled = False
336
-        MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Documents.Fixed.dll") Then : Else
337
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.Windows.Documents.Fixed.dll", Str + "\Telerik.Windows.Documents.Fixed.dll")
338
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.Windows.Documents.Fixed" : End If
339
-        MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Documents.Fixed.xml") Then : Else
340
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.Windows.Documents.Fixed.xml", Str + "\Telerik.Windows.Documents.Fixed.xml")
341
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.Windows.Documents.Fixed" : End If
342
-        MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Zip.dll") Then : Else
343
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.Windows.Zip.dll", Str + "\Telerik.Windows.Zip.dll")
344
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.Windows.Zip" : End If
345
-        MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Zip.xml") Then : Else
346
-            My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "Telerik.Windows.Zip.xml", Str + "\Telerik.Windows.Zip.xml")
347
-            Me.Text = "UPDATE " & Strings.Mid(Target, 7, 30) & "Telerik.Windows.Zip" : End If
365
+    Private Sub Timer9_Tick(sender As Object, e As EventArgs) Handles 驗證存在7.Tick
366
+        驗證存在7.Enabled = False
348
         OK9 = True : CheckBox9.Checked = True
367
         OK9 = True : CheckBox9.Checked = True
349
     End Sub
368
     End Sub
350
-    Private Sub Timer10_Tick(sender As Object, e As EventArgs) Handles Timer10.Tick
351
-        Timer10.Enabled = False
352
-        OK10 = True : CheckBox10.Checked = True
369
+    Private Sub 刪除所有檔案_Tick(sender As Object, e As EventArgs) Handles 刪除所有檔案.Tick
370
+        刪除所有檔案.Enabled = False
371
+        MyModule1.進度條() : If File.Exists(Str + "\Theme\excel_chinese.xml") Then : File.Delete(Str + "\Theme\excel_chinese.xml") : End If
372
+        MyModule1.進度條() : If File.Exists(Str + "\Theme\excel_english.xml") Then : File.Delete(Str + "\Theme\excel_english.xml") : End If
373
+        MyModule1.進度條() : If File.Exists(Str + "\Theme\TelerikMetro_Chinese.tssp") Then : File.Delete(Str + "\Theme\TelerikMetro_Chinese.tssp") : End If
374
+        MyModule1.進度條() : If File.Exists(Str + "\Theme\word_chinese.xml") Then : File.Delete(Str + "\Theme\word_chinese.xml") : End If
375
+        MyModule1.進度條() : If File.Exists(Str + "\Theme\word_english.xml") Then : File.Delete(Str + "\Theme\word_english.xml") : End If
376
+        MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-ERP-SYS.pdb") Then : File.Delete(Str + "\HX-PGS-ERP-SYS.pdb") : End If
377
+        MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-ERP-SYS.xml") Then : File.Delete(Str + "\HX-PGS-ERP-SYS.xml") : End If
378
+        MyModule1.進度條() : If File.Exists(Str + "\HX-PGS-ERP-SYS.exe.config") Then : File.Delete(Str + "\HX-PGS-ERP-SYS.exe.config") : End If
379
+        MyModule1.進度條() : If File.Exists(Str + "\DotNetBarcode.dll") Then : File.Delete(Str + "\DotNetBarcode.dll") : End If
380
+        MyModule1.進度條() : If File.Exists(Str + "\IdentityModel.dll") Then : File.Delete(Str + "\IdentityModel.dll") : End If
381
+        MyModule1.進度條() : If File.Exists(Str + "\IdentityModel.pdb") Then : File.Delete(Str + "\IdentityModel.pdb") : End If
382
+        MyModule1.進度條() : If File.Exists(Str + "\IdentityModel.xml") Then : File.Delete(Str + "\IdentityModel.xml") : End If
383
+        MyModule1.進度條() : If File.Exists(Str + "\Newtonsoft.Json.dll") Then : File.Delete(Str + "\Newtonsoft.Json.dll") : End If
384
+        MyModule1.進度條() : If File.Exists(Str + "\Newtonsoft.Json.xml") Then : File.Delete(Str + "\Newtonsoft.Json.xml") : End If
385
+        MyModule1.進度條() : If File.Exists(Str + "\PInvoke.Windows.Core.dll") Then : File.Delete(Str + "\PInvoke.Windows.Core.dll") : End If
386
+        MyModule1.進度條() : If File.Exists(Str + "\PInvoke.Windows.Core.xml") Then : File.Delete(Str + "\PInvoke.Windows.Core.xml") : End If
387
+        MyModule1.進度條() : If File.Exists(Str + "\System.Buffers.dll") Then : File.Delete(Str + "\System.Buffers.dll") : End If
388
+        MyModule1.進度條() : If File.Exists(Str + "\System.Buffers.xml") Then : File.Delete(Str + "\System.Buffers.xml") : End If
389
+        MyModule1.進度條() : If File.Exists(Str + "\System.Memory.dll") Then : File.Delete(Str + "\System.Memory.dll") : End If
390
+        MyModule1.進度條() : If File.Exists(Str + "\System.Memory.xml") Then : File.Delete(Str + "\System.Memory.xml") : End If
391
+        MyModule1.進度條() : If File.Exists(Str + "\System.Numerics.Vectors.dll") Then : File.Delete(Str + "\System.Numerics.Vectors.dll") : End If
392
+        MyModule1.進度條() : If File.Exists(Str + "\System.Numerics.Vectors.xml") Then : File.Delete(Str + "\System.Numerics.Vectors.xml") : End If
393
+        MyModule1.進度條() : If File.Exists(Str + "\System.Runtime.CompilerServices.Unsafe.dll") Then : File.Delete(Str + "\System.Runtime.CompilerServices.Unsafe.dll") : End If
394
+        MyModule1.進度條() : If File.Exists(Str + "\System.Runtime.CompilerServices.Unsafe.xml") Then : File.Delete(Str + "\System.Runtime.CompilerServices.Unsafe.xml") : End If
395
+        MyModule1.進度條() : If File.Exists(Str + "\System.Text.Encodings.Web.dll") Then : File.Delete(Str + "\System.Text.Encodings.Web.dll") : End If
396
+        MyModule1.進度條() : If File.Exists(Str + "\System.Text.Encodings.Web.xml") Then : File.Delete(Str + "\System.Text.Encodings.Web.xml") : End If
397
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.SyntaxEditor.dll") Then : File.Delete(Str + "\Telerik.WinControls.SyntaxEditor.dll") : End If
398
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.SyntaxEditor.xml") Then : File.Delete(Str + "\Telerik.WinControls.SyntaxEditor.xml") : End If
399
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.UI.dll") Then : File.Delete(Str + "\Telerik.WinControls.UI.dll") : End If
400
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.UI.xml") Then : File.Delete(Str + "\Telerik.WinControls.UI.xml") : End If
401
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.dll") Then : File.Delete(Str + "\Telerik.WinControls.dll") : End If
402
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Documents.Fixed.dll") Then : File.Delete(Str + "\Telerik.Windows.Documents.Fixed.dll") : End If
403
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Documents.Fixed.xml") Then : File.Delete(Str + "\Telerik.Windows.Documents.Fixed.xml") : End If
404
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Zip.dll") Then : File.Delete(Str + "\Telerik.Windows.Zip.dll") : End If
405
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Zip.xml") Then : File.Delete(Str + "\Telerik.Windows.Zip.xml") : End If
406
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.xml") Then : File.Delete(Str + "\Telerik.WinControls.xml") : End If
407
+        MyModule1.進度條() : If File.Exists(Str + "\TelerikCommon.dll") Then : File.Delete(Str + "\TelerikCommon.dll") : End If
408
+        MyModule1.進度條() : If File.Exists(Str + "\SuperDataGrid.dll") Then : File.Delete(Str + "\SuperDataGrid.dll") : End If
409
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.PdfViewer.dll") Then : File.Delete(Str + "\Telerik.WinControls.PdfViewer.dll") : End If
410
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.PdfViewer.xml") Then : File.Delete(Str + "\Telerik.WinControls.PdfViewer.xml") : End If
411
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RichTextEditor.dll") Then : File.Delete(Str + "\Telerik.WinControls.RichTextEditor.dll") : End If
412
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RichTextEditor.xml") Then : File.Delete(Str + "\Telerik.WinControls.RichTextEditor.xml") : End If
413
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Documents.Core.dll") Then : File.Delete(Str + "\Telerik.Windows.Documents.Core.dll") : End If
414
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.Documents.Core.xml") Then : File.Delete(Str + "\Telerik.Windows.Documents.Core.xml") : End If
415
+        MyModule1.進度條() : If File.Exists(Str + "\MediaFoundation.dll") Then : File.Delete(Str + "\MediaFoundation.dll") : End If
416
+        MyModule1.進度條() : If File.Exists(Str + "\Microsoft.Toolkit.Uwp.Notifications.dll") Then : File.Delete(Str + "\Microsoft.Toolkit.Uwp.Notifications.dll") : End If
417
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.ChartView.dll") Then : File.Delete(Str + "\Telerik.WinControls.ChartView.dll") : End If
418
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.ChartView.xml") Then : File.Delete(Str + "\Telerik.WinControls.ChartView.xml") : End If
419
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.GridView.dll") Then : File.Delete(Str + "\Telerik.WinControls.GridView.dll") : End If
420
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.GridView.xml") Then : File.Delete(Str + "\Telerik.WinControls.GridView.xml") : End If
421
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadMap.dll") Then : File.Delete(Str + "\Telerik.WinControls.RadMap.dll") : End If
422
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadMap.xml") Then : File.Delete(Str + "\Telerik.WinControls.RadMap.xml") : End If
423
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadToastNotification.dll") Then : File.Delete(Str + "\Telerik.WinControls.RadToastNotification.dll") : End If
424
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadToastNotification.xml") Then : File.Delete(Str + "\Telerik.WinControls.RadToastNotification.xml") : End If
425
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadWebCam.dll") Then : File.Delete(Str + "\Telerik.WinControls.RadWebCam.dll") : End If
426
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.WinControls.RadWebCam.xml") Then : File.Delete(Str + "\Telerik.WinControls.RadWebCam.xml") : End If
427
+        MyModule1.進度條() : If File.Exists(Str + "\Telerik.Windows.MediaFoundation.dll") Then : File.Delete(Str + "\Telerik.Windows.MediaFoundation.dll") : End If
428
+        OK10 = True : CheckBox10.Checked = True : 刪除完成 = True
353
     End Sub
429
     End Sub
354
 End Class
430
 End Class

+ 4
- 0
HX-PGS-UPDATE/SQL_連線狀態模組1.vb Dosyayı Görüntüle

42
         Catch ex As Exception
42
         Catch ex As Exception
43
             MsgBox(ex.Message)
43
             MsgBox(ex.Message)
44
         End Try
44
         End Try
45
+#Disable Warning BC42353 ' 函式在所有程式碼路徑上皆不會傳回值
45
     End Function
46
     End Function
47
+#Enable Warning BC42353 ' 函式在所有程式碼路徑上皆不會傳回值
46
     '--异步动作
48
     '--异步动作
47
     Private Sub BgWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs)
49
     Private Sub BgWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs)
48
         Call ConnectMSSQLServer()
50
         Call ConnectMSSQLServer()
59
         Finally
61
         Finally
60
             bConnect = True
62
             bConnect = True
61
         End Try
63
         End Try
64
+#Disable Warning BC42353 ' 函式在所有程式碼路徑上皆不會傳回值
62
     End Function
65
     End Function
66
+#Enable Warning BC42353 ' 函式在所有程式碼路徑上皆不會傳回值
63
 #End Region
67
 #End Region
64
 End Module
68
 End Module

+ 7
- 4
HX-PGS-UPDATE/SQL_連線狀態模組2.vb Dosyayı Görüntüle

10
     ''' </summary>
10
     ''' </summary>
11
     ''' <returns></returns>
11
     ''' <returns></returns>
12
     ''' <remarks></remarks>
12
     ''' <remarks></remarks>
13
-    Function ConnectTest1(ByVal varServerIP As String, Optional ByVal varTimeout As Decimal = 1.5) As Boolean
13
+    Function ConnectTest2(ByVal varServerIP As String, Optional ByVal varTimeout As Decimal = 1.5) As Boolean
14
         AddHandler BgWorker1.DoWork, AddressOf BgWorker1_DoWork
14
         AddHandler BgWorker1.DoWork, AddressOf BgWorker1_DoWork
15
         Dim g As Integer
15
         Dim g As Integer
16
         Dim k As Integer
16
         Dim k As Integer
33
             For g = 1 To k '1.2s
33
             For g = 1 To k '1.2s
34
                 Threading.Thread.Sleep(100)
34
                 Threading.Thread.Sleep(100)
35
                 If bConnect = True Then
35
                 If bConnect = True Then
36
-                    ConnectTest1 = True
36
+                    ConnectTest2 = True
37
                     Exit Function
37
                     Exit Function
38
                 End If
38
                 End If
39
             Next
39
             Next
40
-            ConnectTest1 = False
40
+            ConnectTest2 = False
41
             BgWorker1.CancelAsync()
41
             BgWorker1.CancelAsync()
42
         Catch ex As Exception
42
         Catch ex As Exception
43
             MsgBox(ex.Message)
43
             MsgBox(ex.Message)
44
         End Try
44
         End Try
45
+#Disable Warning BC42353 ' 函式在所有程式碼路徑上皆不會傳回值
45
     End Function
46
     End Function
47
+#Enable Warning BC42353 ' 函式在所有程式碼路徑上皆不會傳回值
46
     '--异步动作
48
     '--异步动作
47
     Private Sub BgWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs)
49
     Private Sub BgWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs)
48
         Call ConnectMSSQLServer()
50
         Call ConnectMSSQLServer()
59
         Finally
61
         Finally
60
             bConnect = True
62
             bConnect = True
61
         End Try
63
         End Try
64
+#Disable Warning BC42353 ' 函式在所有程式碼路徑上皆不會傳回值
62
     End Function
65
     End Function
66
+#Enable Warning BC42353 ' 函式在所有程式碼路徑上皆不會傳回值
63
 #End Region
67
 #End Region
64
-
65
 End Module
68
 End Module

BIN
HX-PGS-UPDATE/bin/Debug/HX-PGS-UPDATE.exe Dosyayı Görüntüle


BIN
HX-PGS-UPDATE/bin/Debug/HX-PGS-UPDATE.pdb Dosyayı Görüntüle


+ 1
- 1
HX-PGS-UPDATE/bin/Debug/HX-PGS-UPDATE.xml Dosyayı Görüntüle

31
  <returns></returns>
31
  <returns></returns>
32
  <remarks></remarks>
32
  <remarks></remarks>
33
 </member>
33
 </member>
34
-<member name="M:HX_PGS_UPDATE.SQL_連線狀態模組2.ConnectTest1(System.String,System.Decimal)">
34
+<member name="M:HX_PGS_UPDATE.SQL_連線狀態模組2.ConnectTest2(System.String,System.Decimal)">
35
  <summary>
35
  <summary>
36
  测试连接:True-连接成功,False-连接失败
36
  测试连接:True-连接成功,False-连接失败
37
  参数[必选]:服务器IP
37
  参数[必选]:服务器IP

BIN
HX-PGS-UPDATE/obj/Debug/HX-PGS-UPDATE.exe Dosyayı Görüntüle


BIN
HX-PGS-UPDATE/obj/Debug/HX-PGS-UPDATE.pdb Dosyayı Görüntüle


BIN
HX-PGS-UPDATE/obj/Debug/HX-PGS-UPDATE.vbproj.GenerateResource.cache Dosyayı Görüntüle


+ 1
- 1
HX-PGS-UPDATE/obj/Debug/HX-PGS-UPDATE.xml Dosyayı Görüntüle

31
  <returns></returns>
31
  <returns></returns>
32
  <remarks></remarks>
32
  <remarks></remarks>
33
 </member>
33
 </member>
34
-<member name="M:HX_PGS_UPDATE.SQL_連線狀態模組2.ConnectTest1(System.String,System.Decimal)">
34
+<member name="M:HX_PGS_UPDATE.SQL_連線狀態模組2.ConnectTest2(System.String,System.Decimal)">
35
  <summary>
35
  <summary>
36
  测试连接:True-连接成功,False-连接失败
36
  测试连接:True-连接成功,False-连接失败
37
  参数[必选]:服务器IP
37
  参数[必选]:服务器IP

Loading…
İptal
Kaydet