720ea0ee6a
- Impostato border barra superiore a zero se ha altezza zero
32 lines
1.1 KiB
VB.net
32 lines
1.1 KiB
VB.net
Imports EgtUILib
|
|
|
|
Public Class ToolDbWindowV
|
|
|
|
Private WithEvents m_ToolDbWindowVM As ToolDbWindowVM
|
|
|
|
Sub New(Owner As Window, ToolDbWindowVM As 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(ToolDbWindowVM.m_ProjectSceneContext)
|
|
' Cancello contesto di visualizzazione utensile
|
|
EgtDeleteContext(ToolDbWindowVM.m_ToolDbSceneContext)
|
|
ToolDbWindowVM.m_ToolDbSceneContext = 0
|
|
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
|