EgtCAM5 :

- Aggiunto bottone di scelta del file per il disegno utensile nel Db.
- Aggiunto controllo per gestione RawPart in disposizione.
- Piccoli miglioramenti enanched selection.
This commit is contained in:
Emmanuele Sassi
2016-12-19 19:08:57 +00:00
parent d6d91f42fc
commit 6c3b31ff7d
13 changed files with 222 additions and 45 deletions
+38
View File
@@ -836,6 +836,9 @@ Public Class ToolTreeViewItem
#End Region ' Tool Property
' Definizione comandi
Private m_cmdOpenDrawFile As ICommand
#Region "Constructors"
Sub New(Name As String)
@@ -1482,6 +1485,41 @@ Public Class ToolTreeViewItem
#End Region ' Validation
#Region "COMMANDS"
#Region "OpenDrawFileCommand"
''' <summary>
''' Returns a command that create a new tool.
''' </summary>
Public ReadOnly Property OpenDrawFileCommand As ICommand
Get
If m_cmdOpenDrawFile Is Nothing Then
m_cmdOpenDrawFile = New Command(AddressOf OpenDrawFile)
End If
Return m_cmdOpenDrawFile
End Get
End Property
''' <summary>
''' Creata the new tool. This method is invoked by the NewCommand.
''' </summary>
Public Sub OpenDrawFile(ByVal param As Object)
Dim OpenFileDialog As New EgtWPFLib5.EgtOpenFileDialog
OpenFileDialog.Title = "Open draw file"
OpenFileDialog.Filter = "*.nge"
OpenFileDialog.Directory = IniFile.m_sCurrMachToolsDirPath
OpenFileDialog.FileName = m_Draw
If OpenFileDialog.ShowDialog <> True Then
Return
End If
Draw = Path.GetFileName(OpenFileDialog.FileName)
End Sub
#End Region ' OpenDrawFileCommand
#End Region ' Commands
End Class
''' <summary>