Imports EgtUILib Imports EgtWPFLib5 Public Class ViewPanelVM Inherits VMBase #Region "FIELDS & PROPERTIES" #Region "Messages" Public ReadOnly Property LookFromTop_Msg Get Return EgtMsg(5257) ' Vista da Sopra End Get End Property Public ReadOnly Property LookFromBottom_Msg Get Return EgtMsg(5284) ' Vista da Sotto End Get End Property Public ReadOnly Property LookFromFront_Msg Get Return EgtMsg(5258) ' Vista di Fronte End Get End Property Public ReadOnly Property LookFromBack_Msg Get Return EgtMsg(5260) ' Vista da Dietro End Get End Property Public ReadOnly Property LookFromLeft_Msg Get Return EgtMsg(5259) ' Vista da Sinistra End Get End Property Public ReadOnly Property LookFromRight_Msg Get Return EgtMsg(5261) ' Vista da Destra End Get End Property #End Region ' Messages ' Definizione Comandi Dim m_cmdTopView As ICommand Dim m_cmdBottomView As ICommand Dim m_cmdFrontView As ICommand Dim m_cmdLeftView As ICommand Dim m_cmdBackView As ICommand Dim m_cmdRightView As ICommand #End Region ' Fields & Properties #Region "CONSTRUCTOR" Sub New() Map.SetRefViewPanelVM(Me) End Sub #End Region ' Constructor #Region "METHODS" ''' ''' Funzione che aggiorna i messaggi del Manager ''' Friend Sub UpdateMessageViewPanel() NotifyPropertyChanged(NameOf(LookFromTop_Msg)) NotifyPropertyChanged(NameOf(LookFromBottom_Msg)) NotifyPropertyChanged(NameOf(LookFromFront_Msg)) NotifyPropertyChanged(NameOf(LookFromBack_Msg)) NotifyPropertyChanged(NameOf(LookFromLeft_Msg)) NotifyPropertyChanged(NameOf(LookFromRight_Msg)) End Sub #End Region ' Methods #Region "COMMANDS" #Region "TopViewCommand" ''' ''' Returns a command that do TopView. ''' Public ReadOnly Property TopViewCommand As ICommand Get If m_cmdTopView Is Nothing Then m_cmdTopView = New Command(AddressOf TopView) End If Return m_cmdTopView End Get End Property ''' ''' Execute the TopView. This method is invoked by the TopViewCommand. ''' Public Sub TopView(ByVal param As Object) Map.refSceneHostVM.MainScene.TopView() End Sub #End Region ' TopViewCommand #Region "BottomViewCommand" ''' ''' Returns a command that do TopView. ''' Public ReadOnly Property BottomViewCommand As ICommand Get If m_cmdBottomView Is Nothing Then m_cmdBottomView = New Command(AddressOf BottomView) End If Return m_cmdBottomView End Get End Property ''' ''' Execute the BottomView. This method is invoked by the BottomViewCommand. ''' Public Sub BottomView(ByVal param As Object) Map.refSceneHostVM.MainScene.BottomView() End Sub #End Region ' BottomViewCommand #Region "FrontViewCommand" ''' ''' Returns a command that do FrontView. ''' Public ReadOnly Property FrontViewCommand As ICommand Get If m_cmdFrontView Is Nothing Then m_cmdFrontView = New Command(AddressOf FrontView) End If Return m_cmdFrontView End Get End Property ''' ''' Execute the FrontView. This method is invoked by the FrontViewCommand. ''' Public Sub FrontView(ByVal param As Object) Map.refSceneHostVM.MainScene.FrontView() End Sub #End Region ' FrontViewCommand #Region "LeftViewCommand" ''' ''' Returns a command that do LeftView. ''' Public ReadOnly Property LeftViewCommand As ICommand Get If m_cmdLeftView Is Nothing Then m_cmdLeftView = New Command(AddressOf LeftView) End If Return m_cmdLeftView End Get End Property ''' ''' Execute the LeftView. This method is invoked by the LeftViewCommand. ''' Public Sub LeftView(ByVal param As Object) Map.refSceneHostVM.MainScene.LeftView() End Sub #End Region ' LeftViewCommand #Region "BackViewCommand" ''' ''' Returns a command that do BackView. ''' Public ReadOnly Property BackViewCommand As ICommand Get If m_cmdBackView Is Nothing Then m_cmdBackView = New Command(AddressOf BackView) End If Return m_cmdBackView End Get End Property ''' ''' Execute the BackView. This method is invoked by the BackViewCommand. ''' Public Sub BackView(ByVal param As Object) Map.refSceneHostVM.MainScene.BackView() End Sub #End Region ' BackViewCommand #Region "RightViewCommand" ''' ''' Returns a command that do RightView. ''' Public ReadOnly Property RightViewCommand As ICommand Get If m_cmdRightView Is Nothing Then m_cmdRightView = New Command(AddressOf RightView) End If Return m_cmdRightView End Get End Property ''' ''' Execute the RightView. This method is invoked by the RightViewCommand. ''' Public Sub RightView(ByVal param As Object) Map.refSceneHostVM.MainScene.RightView() End Sub #End Region ' RightViewCommand #End Region ' Commands End Class