From 11db87cec5a4c1fc7cd7dbc3d0ca72bff39d583f Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Wed, 17 Feb 2016 14:38:31 +0000 Subject: [PATCH] OmagCUT 1.6n6 : - migliorato salvataggio con nome - correzioni a spezzatura grezzo. --- CadCutPageUC.xaml.vb | 4 +++ ConstGen.vb | 3 ++ ConstMsg.vb | 3 +- CurrentProjectPageUC.xaml.vb | 14 +++------ MoveRawPartPage.xaml | 19 ++++++------ MoveRawPartPage.xaml.vb | 14 +++++++++ SaveNameWD.xaml.vb | 3 ++ SimulationPageUC.xaml.vb | 8 ++--- SplitPageUC.xaml.vb | 57 ++++++++++++++++++++---------------- 9 files changed, 74 insertions(+), 51 deletions(-) diff --git a/CadCutPageUC.xaml.vb b/CadCutPageUC.xaml.vb index 4c47edc..8ae6778 100644 --- a/CadCutPageUC.xaml.vb +++ b/CadCutPageUC.xaml.vb @@ -169,6 +169,7 @@ Public Class CadCutPageUC Case 0 ' Annulla Return Case 1 ' Si + m_MainWindow.m_CurrentProjectPageUC.SaveNameProject() m_MainWindow.m_CurrentProjectPageUC.SaveProject() Case 2 ' No ' Non devo fare alcunchè @@ -190,6 +191,9 @@ Public Class CadCutPageUC GetPrivateProfileString(S_GENERAL, K_SAVENAMEDIR, "", sSaveNameDir, m_MainWindow.GetIniFile()) If sCurrDir = sSaveNameDir Then WritePrivateProfileString(S_GENERAL, K_LASTNAMEPROJ, sCurrFile.Substring(0, sCurrFile.Length - 4), m_MainWindow.GetIniFile()) + ' Salvo equivalente con indice + m_MainWindow.m_CurrentProjectPageUC.SetNextProjectIndex() + m_MainWindow.m_CurrentProjectPageUC.SaveProject() Else WritePrivateProfileString(S_GENERAL, K_LASTNAMEPROJ, String.Empty, m_MainWindow.GetIniFile()) End If diff --git a/ConstGen.vb b/ConstGen.vb index 575d1dd..99f4801 100644 --- a/ConstGen.vb +++ b/ConstGen.vb @@ -110,6 +110,9 @@ Module ConstGen Public Function COL_MCH_DISABLED() As Color3d Return New Color3d(192, 192, 192) End Function + Public Function COL_MCH_DIS_INTERF() As Color3d + Return New Color3d(255, 128, 128) + End Function Public Function COL_MCH_FREE() As Color3d Return New Color3d(0, 0, 255) End Function diff --git a/ConstMsg.vb b/ConstMsg.vb index d9a953a..a16e108 100644 --- a/ConstMsg.vb +++ b/ConstMsg.vb @@ -11,7 +11,8 @@ Public Const MSG_CADCUTPAGEUC As Integer = MSG_OMAGCUT + 300 Public Const MSG_NESTPAGEUC As Integer = MSG_OMAGCUT + 330 Public Const MSG_SPLITPAGEUC As Integer = MSG_OMAGCUT + 340 - Public Const MSG_DRAWPAGEUC As Integer = MSG_OMAGCUT + 350 + Public Const MSG_MOVERAWPAGEUC As Integer = MSG_OMAGCUT + 360 + Public Const MSG_DRAWPAGEUC As Integer = MSG_OMAGCUT + 380 Public Const MSG_COMPONENTPAGEUC As Integer = MSG_OMAGCUT + 400 Public Const MSG_IMPORTPAGEUC As Integer = MSG_OMAGCUT + 450 Public Const MSG_OPENPAGEUC As Integer = MSG_OMAGCUT + 490 diff --git a/CurrentProjectPageUC.xaml.vb b/CurrentProjectPageUC.xaml.vb index cafb2f0..33c97a8 100644 --- a/CurrentProjectPageUC.xaml.vb +++ b/CurrentProjectPageUC.xaml.vb @@ -119,7 +119,7 @@ Public Class CurrentProjectPageUC NewProject() End If EgtResetModified() - ' Altrimenti ne imposto uno nuovo + ' Altrimenti ne imposto uno nuovo Else m_nCurrProj = GetPrivateProfileInt(S_GENERAL, K_LASTPROJ, 0, m_MainWindow.GetIniFile()) NewProject() @@ -162,7 +162,7 @@ Public Class CurrentProjectPageUC ' Gestione progetto - Private Sub SetNextProjectIndex() + Friend Sub SetNextProjectIndex() ' se indice negativo, non devo calcolarne uno nuovo If m_nCurrProj < 0 Then Return @@ -357,18 +357,12 @@ Public Class CurrentProjectPageUC Friend Function SaveNameProject() As Boolean ' Determino nome del progetto Dim CurrProjName As String = String.Empty - If Not IsNothing(m_MainWindow.m_CadCutPageUC.m_SaveNameWD) Then - CurrProjName = m_MainWindow.m_CadCutPageUC.m_SaveNameWD.SaveNameTxBx.Text - Else - GetPrivateProfileString(S_GENERAL, K_LASTNAMEPROJ, "", CurrProjName, m_MainWindow.GetIniFile()) - End If - Dim sPath As String = m_MainWindow.GetSaveNameDir() & "\" & CurrProjName & ".nge" - ' Aggiorno file Ini - WritePrivateProfileString(S_GENERAL, K_LASTNAMEPROJ, CurrProjName, m_MainWindow.GetIniFile()) + GetPrivateProfileString(S_GENERAL, K_LASTNAMEPROJ, "", CurrProjName, m_MainWindow.GetIniFile()) ' Se nome vuoto, non salvo If String.IsNullOrEmpty(CurrProjName) Then Return False End If + Dim sPath As String = m_MainWindow.GetSaveNameDir() & "\" & CurrProjName & ".nge" ' Rinomino eventuale fotografia Dim nPhotoId As Integer = GetPhoto() If nPhotoId <> GDB_ID.NULL Then diff --git a/MoveRawPartPage.xaml b/MoveRawPartPage.xaml index 82e4f65..f7fe55e 100644 --- a/MoveRawPartPage.xaml +++ b/MoveRawPartPage.xaml @@ -75,18 +75,17 @@ + Style="{StaticResource OmagCut_RightGrayGradientYellowButton}" Visibility="Hidden"/> + - + Style="{StaticResource OmagCut_RightGrayYellowIconToggleButton}" Visibility="Hidden"/> + + Style="{StaticResource OmagCut_RightGrayGradientYellowButton}" Visibility="Hidden"/> -