Files
EgtCAM5/OptionsWindow/OptionsViewModel.vb
T
Emmanuele Sassi a5aaa46db9 EgtCAM5 :
- Migliorata gestione selezione in Machining.
- Aggiunta pagina opzioni.
- Aggiunta definizione dimensione griglia in StatusBar.
- Agiunta gestione separata della griglia in modalita' Draw e Machining.
2016-09-25 13:22:22 +00:00

52 lines
1.4 KiB
VB.net

Imports EgtUILib
Namespace EgtCAM5
Public Class OptionsViewModel
Private m_Title As String
Public ReadOnly Property Title As String
Get
Return EgtMsg(MSG_MAINWINDOW + 5)
End Get
End Property
' Definizione comandi
Private m_cmdCloseOptions As ICommand
#Region "COMMANDS"
#Region "CloseMachiningsDbCommand"
''' <summary>
''' Returns a command that remove the current selected machining.
''' </summary>
Public ReadOnly Property CloseOptionsCommand() As ICommand
Get
If m_cmdCloseOptions Is Nothing Then
m_cmdCloseOptions = New RelayCommand(AddressOf CloseOptions)
End If
Return m_cmdCloseOptions
End Get
End Property
''' <summary>
''' Manage the MachiningDb closing. This method is invoked by the CloseMachiningDbCommand.
''' </summary>
Public Sub CloseOptions()
' Chiusura finestra
For Each Window In Application.Current.Windows
If TypeOf Window Is OptionsView Then
Dim OptionsWindow As OptionsView = DirectCast(Window, OptionsView)
OptionsWindow.Close()
End If
Next
End Sub
#End Region ' CloseMachiningDbCommand
#End Region ' COMMANDS
End Class
End Namespace