I have Form1 creating and showing Form2. When a label on Form2 is clicked an event is raised and then handled in Form1.
The handler determines the state of my app. States include: Monitoring, Waiting, Closing, Warning.

How bad of an idea is it to track my apps state by having a global enum int like:

Dim AppState as integer
Public enum State
Monitoring = 1
Waiting = 2
Closing = 3
Warning = 4
End Enum


During specific points in the app, I set the app state as needed
Appstate = State.Monitoring


Upon events of a timer, I check the apps state
Select case appstate
Case State.Monitoring
‘do something if monitoring
Case State.Waiting
‘do something if waiting
Case State.Closing
‘do something if closing
Case State.Warning
‘do something if warning.
End Select


Is this a really stupid idea?
Is there a better way?
I read something about MS application state block but it made no sense to be at all, and to mention it was all in C#

Thanks!