Files
EgtCAM5/AboutBoxWindow/AboutBoxView.xaml.vb
T
Dario Sassi 5b5c5b1098 EgtCAM5 :
- aggiunti bit chave di protezione per DOORS e GUNSTOCK
- con Shift ChangeLayer diventa locale (ovvero non mantiene in posizione globale la geometria spostata)
- aggiunta gestione messaggi di errore per Gunstock.
2016-10-18 18:44:59 +00:00

49 lines
2.1 KiB
VB.net

Imports EgtUILib
Public Class AboutBoxView
' Riferimento alla MainWindow
Private m_MainWindow As Window = Application.Current.MainWindow
Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
Application.Msn.Register(Application.CLOSEAPPLICATION, Sub()
Me.Close()
End Sub)
End Sub
Private Sub AboutBoxView_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded
'Me.Owner = Application.Current.MainWindow
'Me.Owner = Owner
Me.Top = Owner.Top + (Owner.Height / 2 - Me.Height / 2)
Me.Left = Owner.Left + (Owner.Width / 2 - Me.Width / 2)
End Sub
Private Sub ExitBtn_Click(sender As Object, e As RoutedEventArgs) Handles ExitBtn.Click
Me.Visibility = Windows.Visibility.Hidden
End Sub
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()
Dim sKey As String = String.Empty
EgtGetKeyInfo(sKey)
Dim sKlev As String = IniFile.m_nKeyLevel.ToString()
Dim sOpts As String = IniFile.m_nKeyOptions.ToString()
KeyLbl.Text = sKey & " - " & sKlev & " - " & sOpts
CopyrightLbl.Text = My.Application.Info.Copyright.ToString()
'MachineLbl.Text = "Machine : " & m_MainWindow.m_CurrentMachine.sMachineName
'ProjectLbl.Text = "Project : " & m_MainWindow.m_CurrentProjectPageUC.GetCurrentProjectName()
ExitBtn.Content = EgtMsg(MSG_MISSINGKEYWD + 4) 'Ok
End Sub
End Class