25b205f21d
- sistemazioni ad AboutBox - correzioni lettura Mtables - sistemazione grafica Launcher.
60 lines
2.8 KiB
VB.net
60 lines
2.8 KiB
VB.net
Imports EgtUILib
|
|
|
|
Public Class AboutBoxV
|
|
|
|
Private Sub AboutBoxWD_Initialized(sender As Object, e As EventArgs) Handles Me.Initialized
|
|
Me.Owner = Application.Current.MainWindow
|
|
DescriptionLbl.Text = My.Application.Info.Description.ToString()
|
|
VersionLbl.Text = "Version : " & My.Application.Info.Version.Major.ToString() &
|
|
"." & My.Application.Info.Version.Minor.ToString() &
|
|
(ChrW(97 - 1 + My.Application.Info.Version.Build)).ToString() &
|
|
My.Application.Info.Version.Revision.ToString()
|
|
CopyrightLbl.Text = My.Application.Info.Copyright.ToString()
|
|
Dim sInfo As String = String.Empty
|
|
Dim sKey As String = String.Empty
|
|
EgtGetKeyInfo(sKey)
|
|
Dim sKlev As String = IniFile.m_nKeyLevel.ToString()
|
|
Dim sOpts As String = IniFile.m_nKeyOptions.ToString()
|
|
Dim sLeftDays As String = ""
|
|
Dim nLeftDays As Integer
|
|
if EgtGetKeyLeftDays( nLeftDays) AndAlso nLeftDays < 500 Then sLeftDays= " (" & nLeftDays.ToString() & ")"
|
|
Dim sAssStatus As String = " discontinued"
|
|
Dim nAssLeftDays As Integer
|
|
If EgtGetKeyAssLeftDays( nAssLeftDays) And nAssLeftDays >= 0 Then
|
|
If nAssLeftDays > 30 then
|
|
sAssStatus = "expires within " & nAssLeftDays.ToString() & " days"
|
|
Else If nAssLeftDays > 0 then
|
|
sAssStatus = "to be renewed within " & nAssLeftDays.ToString() & " days"
|
|
Else
|
|
sAssStatus = "to be renewed by today"
|
|
End If
|
|
End If
|
|
sInfo = If( EgtIsDebug(), "*** Debug Libraries ***" & vbCrLf, "")
|
|
sInfo &= "User " & Environment.MachineName & "\" & Environment.UserName &
|
|
" Inst" & Map.refMainWindowVM.Instance().ToString() &
|
|
" Ulv" & IniFile.m_nUserLevel.ToString() & " Dbg" & Map.refMainWindowVM.DebugLevel().ToString() & vbCrLf
|
|
sInfo &= sKey & " - " & sKlev & " - " & sOpts & vbCrLf
|
|
sInfo &= "SupportPlane " & sAssStatus & vbCrLf
|
|
sInfo &= "DataRoot " & IniFile.m_sDataRoot & vbCrLf
|
|
sInfo &= "Doors " & IniFile.m_sDoorsDirPath & vbCrLf
|
|
If OptionModule.m_MaterialList.Count = 1 Then
|
|
sInfo &= "Material " & OptionModule.m_MaterialList(0).Name & vbCrLf
|
|
End If
|
|
Dim sOpSys As String = String.Empty
|
|
EgtGetOsInfo( sOpSys)
|
|
sInfo &= sOpSys & Environment.NewLine
|
|
Dim sCPU As String = String.Empty
|
|
EgtGetCpuInfo( sCPU)
|
|
sInfo &= sCPU & Environment.NewLine
|
|
Dim sMem As String = String.Empty
|
|
EgtGetMemoryInfo( sMem)
|
|
sInfo &= sMem & Environment.NewLine
|
|
Dim sScene As String = String.Empty
|
|
EgtGetSceneInfo(sScene)
|
|
sInfo &= sScene
|
|
InfoLbl.Text = sInfo
|
|
ExitBtn.Content = EgtMsg(MSG_MISSINGKEYWD + 4) 'Ok
|
|
End Sub
|
|
|
|
End Class
|