Skip to content

Commit fb02c36

Browse files
committed
Small WinNUT.vb corrections
Corrected references, and fixed a String.Format call.
1 parent 41bfcef commit fb02c36

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

WinNUT_V2/WinNUT-Client/WinNUT.vb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Imports WinNUT_Client_Common
1+
Imports WinNUT_Client_Common
22

33
Public Class WinNUT
44
#Region "Properties"
@@ -189,12 +189,11 @@ Public Class WinNUT
189189
StartUpdateCheck()
190190
End If
191191

192-
AddHandler SystemEvents.PowerModeChanged, AddressOf SystemEvents_PowerModeChanged
192+
AddHandler Microsoft.Win32.SystemEvents.PowerModeChanged, AddressOf SystemEvents_PowerModeChanged
193193
AddHandler RequestConnect, AddressOf UPS_Connect
194194
AddHandler My.Settings.PropertyChanged, AddressOf SettingsPropertyChanged
195195

196-
LogFile.LogTracing(String.Format("WinNUT Form completed Load.", My.Application.Info.ProductName, My.Application.Info.Version),
197-
LogLvl.LOG_NOTICE, Me)
196+
LogFile.LogTracing("WinNUT Form completed Load.", LogLvl.LOG_NOTICE, Me)
198197
End Sub
199198

200199
''' <summary>
@@ -310,7 +309,7 @@ Public Class WinNUT
310309

311310
#End Region
312311

313-
Private Sub SettingsPropertyChanged(sender As Object, e As PropertyChangedEventArgs)
312+
Private Sub SettingsPropertyChanged(sender As Object, e As System.ComponentModel.PropertyChangedEventArgs)
314313
LogFile.LogTracing("SettingsPropertyChanged: " & e.PropertyName, LogLvl.LOG_DEBUG, Me)
315314

316315
UpdateMainMenuState()

0 commit comments

Comments
 (0)