6dd2abf95d
- Altri nomi modificati. - Eliminato namespace.
68 lines
1.9 KiB
VB.net
68 lines
1.9 KiB
VB.net
Module Map
|
|
|
|
#Region "Program ViewModel Map"
|
|
|
|
Private m_refMainWindowVM As MainWindowVM
|
|
Private m_refStatusBarVM As StatusBarVM
|
|
Private m_refTopCommandBarVM As TopCommandBarVM
|
|
Private m_refProjectVM As ProjectVM
|
|
|
|
#Region "Get"
|
|
|
|
Public ReadOnly Property refMainWindowVM As MainWindowVM
|
|
Get
|
|
Return m_refMainWindowVM
|
|
End Get
|
|
End Property
|
|
Public ReadOnly Property refStatusBarVM As StatusBarVM
|
|
Get
|
|
Return m_refStatusBarVM
|
|
End Get
|
|
End Property
|
|
Public ReadOnly Property refTopCommandBarVM As TopCommandBarVM
|
|
Get
|
|
Return m_refTopCommandBarVM
|
|
End Get
|
|
End Property
|
|
Public ReadOnly Property refProjectVM As ProjectVM
|
|
Get
|
|
Return m_refProjectVM
|
|
End Get
|
|
End Property
|
|
|
|
#End Region ' Get
|
|
|
|
#Region "Set"
|
|
|
|
Friend Function SetRefStatusBarVM(StatusBarVM As StatusBarVM) As Boolean
|
|
m_refStatusBarVM = StatusBarVM
|
|
Return Not IsNothing(m_refStatusBarVM)
|
|
End Function
|
|
Friend Function SetRefTopCommandBarVM(TopCommandBarVM As TopCommandBarVM) As Boolean
|
|
m_refTopCommandBarVM = TopCommandBarVM
|
|
Return Not IsNothing(m_refTopCommandBarVM)
|
|
End Function
|
|
Friend Function SetRefProjectVM(ProjectVM As ProjectVM) As Boolean
|
|
m_refProjectVM = ProjectVM
|
|
Return Not IsNothing(m_refProjectVM)
|
|
End Function
|
|
|
|
#End Region ' Set
|
|
|
|
#Region "Init"
|
|
|
|
Friend Function BeginInit(MainWindowVM As MainWindowVM) As Boolean
|
|
m_refMainWindowVM = MainWindowVM
|
|
Return Not IsNothing(m_refMainWindowVM)
|
|
End Function
|
|
Friend Function EndInit() As Boolean
|
|
' Verifico se tutti i pezzi necessari sono stati caricati
|
|
Return Not IsNothing(m_refMainWindowVM) AndAlso Not IsNothing(m_refStatusBarVM) AndAlso Not IsNothing(m_refProjectVM) AndAlso Not IsNothing(m_refTopCommandBarVM)
|
|
End Function
|
|
|
|
#End Region ' Init
|
|
|
|
#End Region ' Program ViewModel Map
|
|
|
|
End Module
|