22 lines
705 B
VB.net
22 lines
705 B
VB.net
Imports EgtWPFLib5
|
|
|
|
Public Class MyMachiningDbWindowV
|
|
|
|
Private WithEvents m_MachiningDbWindowVM As EgtWPFLib5.MachiningDbWindowVM
|
|
|
|
Sub New(Owner As Window, MachiningDbWindowVM As EgtWPFLib5.MachiningDbWindowVM)
|
|
MyBase.New(Owner)
|
|
' This call is required by the designer.
|
|
InitializeComponent()
|
|
Me.DataContext = MachiningDbWindowVM
|
|
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
|
m_MachiningDbWindowVM = MachiningDbWindowVM
|
|
End Sub
|
|
|
|
Private Sub CloseWindow(bDialogResult As Boolean) Handles m_MachiningDbWindowVM.m_CloseWindow
|
|
Me.DataContext = Nothing
|
|
Me.DialogResult = bDialogResult
|
|
End Sub
|
|
|
|
End Class
|