@@ -12,20 +12,6 @@ Imports WinNUT_Client_Common
12
12
Public Class WinNUT
13
13
# Region "Properties"
14
14
15
- Public Property UpdateMethod() As String
16
- Get
17
- If mUpdate Then
18
- mUpdate = False
19
- Return True
20
- Else
21
- Return False
22
- End If
23
- End Get
24
- Set (Value As String )
25
- mUpdate = Value
26
- End Set
27
- End Property
28
-
29
15
Public WriteOnly Property HasCrashed() As Boolean
30
16
Set (Value As Boolean )
31
17
WinNUT_Crashed = Value
@@ -78,7 +64,6 @@ Public Class WinNUT
78
64
Public UPS_InputA As Double
79
65
80
66
Private HasFocus As Boolean = True
81
- Private mUpdate As Boolean = False
82
67
Private FormText As String
83
68
Private WinNUT_Crashed As Boolean = False
84
69
@@ -349,10 +334,10 @@ Public Class WinNUT
349
334
LogFile.LogTracing( "Suspending WinNUT operations..." , LogLvl.LOG_NOTICE, Me , StrLog.Item(AppResxStr.STR_MAIN_GOTOSLEEP))
350
335
UPSDisconnect()
351
336
Case Microsoft.Win32.PowerModes.Resume
352
- LogFile.LogTracing( "Restarting WinNUT after waking up from Windows" , LogLvl.LOG_NOTICE, Me , StrLog.Item(AppResxStr.STR_MAIN_EXITSLEEP))
353
337
If My.Settings.NUT_AutoReconnect Then
354
- UPS_Connect( True )
355
- End If
338
+ LogFile.LogTracing( "Reconnecting after system resume." , LogLvl.LOG_NOTICE, Me , StrLog.Item(AppResxStr.STR_MAIN_EXITSLEEP))
339
+ UPS_Connect( True )
340
+ End If
356
341
End Select
357
342
End Sub
358
343
@@ -1048,12 +1033,11 @@ Public Class WinNUT
1048
1033
End Sub
1049
1034
1050
1035
Private Sub Menu_Update_Click(sender As Object , e As EventArgs) Handles Menu_Update.Click
1051
- mUpdate = True
1052
1036
'Dim th As System.Threading.Thread = New Threading.Thread(New System.Threading.ParameterizedThreadStart(AddressOf Run_Update))
1053
1037
'th.SetApartmentState(System.Threading.ApartmentState.STA)
1054
1038
'th.Start(Me.UpdateMethod)
1055
1039
LogFile.LogTracing( "Open About Gui From Menu" , LogLvl.LOG_DEBUG, Me )
1056
- Dim Update_Frm = New Update_Gui(mUpdate )
1040
+ Dim Update_Frm = New Update_Gui( True )
1057
1041
Update_Frm.Activate()
1058
1042
Update_Frm.Visible = True
1059
1043
HasFocus = False
0 commit comments