Files
EgtCAM5/ProjectPage/GunStockPanel/GunStockPanelViewModel.vb
T
Dario Sassi 2686880dfe EgtCAM5 1.6v6 :
- corretta gestione MRU per '_'
- in lista lavorazioni accodato nome lavorazione in libreria.
2016-10-11 09:23:39 +00:00

70 lines
2.0 KiB
VB.net

Imports System.Collections.ObjectModel
Namespace EgtCAM5
Public Class GunStockPanelViewModel
Inherits ViewModelBase
Public ReadOnly Property MruGunStockNames As ObservableCollection(Of String)
Get
Return IniFile.m_MruGunStock.m_FileNames
End Get
End Property
' Definizione comandi
Private m_cmdGunStock As ICommand
Private Shared m_cmdOpenMruGunStock As ICommand
#Region "COMMANDS"
#Region "GunStockCommand"
''' <summary>
''' Returns a command that do Import.
''' </summary>
Public ReadOnly Property GunStockCommand As ICommand
Get
If m_cmdGunStock Is Nothing Then
m_cmdGunStock = New RelayCommand(AddressOf GunStock)
End If
Return m_cmdGunStock
End Get
End Property
''' <summary>
''' Execute the Door. This method is invoked by the DoorsCommand.
''' </summary>
Public Sub GunStock(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.GUNSTOCKSCRIPT, String.Empty)
End Sub
#End Region ' GunStockCommand
#Region "OpenMruGunStockCommand"
''' <summary>
''' Returns a command that do Open.
''' </summary>
Public Shared ReadOnly Property OpenMruGunStockCommand As ICommand
Get
If m_cmdOpenMruGunStock Is Nothing Then
m_cmdOpenMruGunStock = New RelayCommand(AddressOf OpenMruGunStock)
End If
Return m_cmdOpenMruGunStock
End Get
End Property
''' <summary>
''' Execute the Open. This method is invoked by the OpenCommand.
''' </summary>
Public Shared Sub OpenMruGunStock(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.GUNSTOCKSCRIPT, DirectCast(param, String).Replace("__", "_"))
End Sub
#End Region ' OpenMruGunStockCommand
#End Region
End Class
End Namespace