Skip to content

Commit

Permalink
Tidied up shutdown display. Fixed counter offset to accommodate for l…
Browse files Browse the repository at this point in the history
…oad time
  • Loading branch information
Iridium-IO committed Oct 24, 2017
1 parent 71cb9ab commit c0b2b10
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion WindowsApp1/Compact.vb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Imports System.Management


Public Class Compact
Dim version = "1.6.0"
Dim version = "1.7.0"
Private WithEvents MyProcess As Process
Private Delegate Sub AppendOutputTextDelegate(ByVal text As String)

Expand Down
4 changes: 2 additions & 2 deletions WindowsApp1/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("1.6.0.0")>
<Assembly: AssemblyFileVersion("1.6.0.0")>
<Assembly: AssemblyVersion("1.7.0.0")>
<Assembly: AssemblyFileVersion("1.7.0.0")>
<Assembly: NeutralResourcesLanguage("en")>
2 changes: 0 additions & 2 deletions WindowsApp1/ShutdownDialog.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions WindowsApp1/ShutdownDialog.vb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,17 @@ Public Class ShutdownDialog

Private Sub Dialog1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
shutdownTimer.Start()

Select Case SDProcIntent.Text
Case "Shutdown"
SDProgText.Text = "Shutting down in 10 seconds"
Case "Restart"
SDProgText.Text = "Restarting in 10 seconds"
Case "Sleep"
SDProgText.Text = "Sleeping in 10 seconds"
End Select
End Sub

Dim secCount As Integer = 10
Dim secCount As Integer = 9
Private Sub shutdownTimer_Tick(sender As Object, e As EventArgs) Handles shutdownTimer.Tick

Select Case SDProcIntent.Text
Expand Down

0 comments on commit c0b2b10

Please sign in to comment.