Skip to content

Commit 3e5d958

Browse files
committed
Update references in WinNUT form
Updating references in WinNUT main form to new gauge class.
1 parent b7c0b82 commit 3e5d958

File tree

2 files changed

+48
-55
lines changed

2 files changed

+48
-55
lines changed

WinNUT_V2/WinNUT-Client/WinNUT.Designer.vb

Lines changed: 42 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WinNUT_V2/WinNUT-Client/WinNUT.vb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,19 @@ Public Class WinNUT
276276
#If DEBUG Then
277277
' Insert AGauge testing dialog menu item
278278
Dim agDbgFormOpen = New ToolStripMenuItem("AGauge Test Form")
279-
AddHandler agDbgFormOpen.Click, Function() AGaugeTest.ShowDialog()
279+
AddHandler agDbgFormOpen.Click, AddressOf OpenAGDebugForm
280280
Menu_File.DropDownItems.Add(agDbgFormOpen)
281281
#End If
282282

283283
LogFile.LogTracing(String.Format("{0} v{1} completed initialization.", My.Application.Info.ProductName, My.Application.Info.Version),
284284
LogLvl.LOG_NOTICE, Me)
285285
End Sub
286286

287+
Private Sub OpenAGDebugForm(sender As Object, e As EventArgs)
288+
Dim form = New AGaugeTest()
289+
form.ShowDialog()
290+
End Sub
291+
287292
Private Sub SystemEvents_PowerModeChanged(sender As Object, e As Microsoft.Win32.PowerModeChangedEventArgs)
288293
LogFile.LogTracing("PowerModeChangedEvent: " & [Enum].GetName(GetType(Microsoft.Win32.PowerModes), e.Mode), LogLvl.LOG_NOTICE, Me)
289294
Select Case e.Mode

0 commit comments

Comments
 (0)