diff --git a/DrawPanel/DrawPanelV.xaml b/DrawPanel/DrawPanelV.xaml index 5fe74bd..7ae93dc 100644 --- a/DrawPanel/DrawPanelV.xaml +++ b/DrawPanel/DrawPanelV.xaml @@ -207,6 +207,11 @@ Command="{Binding SetCurveThCommand}" IsEnabled="{Binding bSelOk}"> + diff --git a/DrawPanel/DrawPanelVM.vb b/DrawPanel/DrawPanelVM.vb index 3cb49c1..311a9d1 100644 --- a/DrawPanel/DrawPanelVM.vb +++ b/DrawPanel/DrawPanelVM.vb @@ -204,7 +204,6 @@ Public Class DrawPanelVM Return EgtMsg(MSG_DRAWPANEL + 32) End Get End Property - Public ReadOnly Property JoinCurveToolTip As String Get Return EgtMsg(MSG_DRAWPANEL + 33) @@ -220,6 +219,11 @@ Public Class DrawPanelVM Return EgtMsg(MSG_DRAWPANEL + 35) End Get End Property + Public ReadOnly Property ModifyTextToolTip As String + Get + Return EgtMsg(MSG_DRAWPANEL + 49) + End Get + End Property Public ReadOnly Property MoveToolTip As String Get @@ -384,6 +388,7 @@ Public Class DrawPanelVM Private m_cmdJoinCurve As ICommand Private m_cmdExplodeCurve As ICommand Private m_cmdSetCurveTh As ICommand + Private m_cmdModifyText As ICommand Private m_cmdMove As ICommand Private m_cmdRotate As ICommand Private m_cmdRotate3D As ICommand @@ -1283,6 +1288,29 @@ Public Class DrawPanelVM #End Region ' SetCurveThCommand +#Region "ModifyTextCommand" + + ''' + ''' Returns a command that do ModifyText. + ''' + Public ReadOnly Property ModifyTextCommand As ICommand + Get + If m_cmdModifyText Is Nothing Then + m_cmdModifyText = New RelayCommand(AddressOf ModifyText) + End If + Return m_cmdModifyText + End Get + End Property + + ''' + ''' Execute the ModifyText. This method is invoked by the ModifyTextCommand. + ''' + Public Sub ModifyText(ByVal param As Object) + Map.refProjectVM.GetController.ExecuteCommand(Controller.CMD.MODIFYTEXT) + End Sub + +#End Region ' ModifyTextCommand + #Region "MoveCommand" ''' diff --git a/EgtCAM5.vbproj b/EgtCAM5.vbproj index 329bc47..76fadcb 100644 --- a/EgtCAM5.vbproj +++ b/EgtCAM5.vbproj @@ -731,6 +731,9 @@ + + + IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\EgtCAM5\EgtCAM5R32.exe diff --git a/MainWindow/MainWindowVM.vb b/MainWindow/MainWindowVM.vb index b99ef9e..1176bc5 100644 --- a/MainWindow/MainWindowVM.vb +++ b/MainWindow/MainWindowVM.vb @@ -326,8 +326,8 @@ Public Class MainWindowVM EgtUILib.GetPrivateProfileString(S_LICENCE, K_KEY, "", sKey, sLicFile) EgtSetKey(sKey) ' Recupero livello e opzioni della chiave - Dim bKey As Boolean = EgtGetKeyLevel(3279, 19, 1, IniFile.m_nKeyLevel) And - EgtGetKeyOptions(3279, 19, 1, IniFile.m_nKeyOptions) + Dim bKey As Boolean = EgtGetKeyLevel(3279, 21, 1, IniFile.m_nKeyLevel) And + EgtGetKeyOptions(3279, 21, 1, IniFile.m_nKeyOptions) ' Inizializzazione generale di EgtInterface m_nDebug = GetPrivateProfileInt(S_GENERAL, K_DEBUG, 0) IniFile.m_sLogFile = m_sTempDir & "\" & GENLOG_FILE_NAME.Replace("#", IniFile.m_nInstance.ToString()) diff --git a/My Project/AssemblyInfo.vb b/My Project/AssemblyInfo.vb index 6855073..2b21f41 100644 --- a/My Project/AssemblyInfo.vb +++ b/My Project/AssemblyInfo.vb @@ -70,5 +70,5 @@ Imports System.Windows ' by using the '*' as shown below: ' - - + + diff --git a/Resources/DrawPanel/ModifyText.png b/Resources/DrawPanel/ModifyText.png new file mode 100644 index 0000000..ba37037 Binary files /dev/null and b/Resources/DrawPanel/ModifyText.png differ