jj: add app state

This commit is contained in:
Jonathan Jenne
2019-01-30 15:27:07 +01:00
parent 1ae788f52e
commit 7d691246f5
11 changed files with 90 additions and 50 deletions

View File

@@ -0,0 +1,7 @@
Public Class LicenseState
Public Modules As List(Of ModuleState)
Public Sub New()
Modules = New List(Of ModuleState)
End Sub
End Class

View File

@@ -0,0 +1,7 @@
Public Class ModuleState
Public Name As String
Public Sub New(Name As String)
Me.Name = Name
End Sub
End Class

View File

@@ -0,0 +1,20 @@
Imports System.Threading
''' <summary>
''' Helper Class to hold User State
''' </summary>
Public Class UserState
Public UserName As String
Public MachineName As String
Public Language As String
''' <summary>
''' Initialize user object with values that can be read from the environment
''' </summary>
Public Sub New()
Language = Thread.CurrentThread.CurrentCulture.Name
UserName = Environment.UserName
MachineName = Environment.MachineName
End Sub
End Class