33 lines
1.2 KiB
VB.net
33 lines
1.2 KiB
VB.net
Imports EgtUILib
|
|
|
|
Public Class MyToolDbWindowV
|
|
|
|
Private WithEvents m_ToolDbWindowVM As EgtWPFLib5.ToolDbWindowVM
|
|
|
|
Sub New(Owner As Window, ToolDbWindowVM As EgtWPFLib5.ToolDbWindowVM)
|
|
MyBase.New(Owner)
|
|
' This call is required by the designer.
|
|
InitializeComponent()
|
|
Me.DataContext = ToolDbWindowVM
|
|
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
|
m_ToolDbWindowVM = ToolDbWindowVM
|
|
End Sub
|
|
|
|
Private Sub ToolsDbView_Closed(sender As Object, e As System.EventArgs) Handles Me.Closed
|
|
'' Imposto contesto generale
|
|
'EgtSetCurrentContext(EgtWPFLib5.ToolDbWindowVM.m_ProjectSceneContext)
|
|
'' Cancello contesto di visualizzazione utensile
|
|
'EgtDeleteContext(ToolDbWindowVM.m_ToolDbSceneContext)
|
|
'ToolDbWindowVM.m_ToolDbSceneContext = 0
|
|
Dim x As Boolean = False
|
|
End Sub
|
|
|
|
Private Sub ToolsDbView_Closing(sender As Object, e As ComponentModel.CancelEventArgs) Handles Me.Closing
|
|
If (Keyboard.Modifiers And ModifierKeys.Alt) = ModifierKeys.Alt OrElse Keyboard.IsKeyDown(Key.F4) Then
|
|
e.Cancel = True
|
|
Return
|
|
End If
|
|
End Sub
|
|
|
|
End Class
|