From d19bd0b84228b593ef3a45f1d49776510bccd693 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Tue, 11 Aug 2026 20:12:50 +0200 Subject: [PATCH] =?UTF-8?q?EgtCAM5=203.1h1=20:=20-=20per=20utenti=20intern?= =?UTF-8?q?i=20aggiunta=20possibilit=C3=A0=20di=20configurare=20da=20Optio?= =?UTF-8?q?ns=20il=20formato=20di=20salvataggio=20del=20DB=20geometrico.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MainWindow/MainWindowVM.vb | 4 +- My Project/AssemblyInfo.vb | 4 +- .../ManageLayerExpanderVM.vb | 3 +- OptionsWindow/OptionModule.vb | 5 ++ OptionsWindow/OptionWindowV.xaml | 21 +++++++- OptionsWindow/OptionWindowVM.vb | 51 ++++++++++++++++++- Project/ProjectVM.vb | 8 ++- 7 files changed, 81 insertions(+), 15 deletions(-) diff --git a/MainWindow/MainWindowVM.vb b/MainWindow/MainWindowVM.vb index 87e3053..f9151b4 100644 --- a/MainWindow/MainWindowVM.vb +++ b/MainWindow/MainWindowVM.vb @@ -378,8 +378,8 @@ Public Class MainWindowVM EgtSetLockId(sLockId) End If ' Recupero livello e opzioni della chiave - Dim bKey As Boolean = EgtGetKeyLevel(3279, 3107, 1, IniFile.m_nKeyLevel) And - EgtGetKeyOptions(3279, 3107, 1, IniFile.m_nKeyOptions) + Dim bKey As Boolean = EgtGetKeyLevel(3279, 3108, 1, IniFile.m_nKeyLevel) And + EgtGetKeyOptions(3279, 3108, 1, IniFile.m_nKeyOptions) ' Leggo e imposto livello utilizzatore IniFile.m_nUserLevel = Math.Min(IniFile.m_nKeyLevel, GetPrivateProfileInt(S_GENERAL, K_USERLEVEL, 1)) ' Imposto abilitazione lavorazioni avanzate diff --git a/My Project/AssemblyInfo.vb b/My Project/AssemblyInfo.vb index 5ee975a..ebb101a 100644 --- a/My Project/AssemblyInfo.vb +++ b/My Project/AssemblyInfo.vb @@ -70,6 +70,6 @@ Imports System.Windows ' by using the '*' as shown below: ' - - + + diff --git a/OptionPanel/DrawOptionPanel/ManageLayerExpander/ManageLayerExpanderVM.vb b/OptionPanel/DrawOptionPanel/ManageLayerExpander/ManageLayerExpanderVM.vb index 7dd752d..cf8c210 100644 --- a/OptionPanel/DrawOptionPanel/ManageLayerExpander/ManageLayerExpanderVM.vb +++ b/OptionPanel/DrawOptionPanel/ManageLayerExpander/ManageLayerExpanderVM.vb @@ -535,8 +535,7 @@ Public Class ManageLayerExpanderVM Public Sub Save(ByVal param As Object) Dim sDir As String = String.Empty GetPrivateProfileString(S_GENERAL, K_LASTNGEOBJDIR, "", sDir) - Dim nType As NGE = DirectCast(GetPrivateProfileInt(S_GEOMDB, K_SAVETYPE, NGE.CMPTEXT), NGE) - Map.refProjectVM.SaveObject(New SaveObjectParam(m_RightClickedTreeItemId, sDir, nType)) + Map.refProjectVM.SaveObject(New SaveObjectParam(m_RightClickedTreeItemId, sDir, OptionModule.m_nGeomDBSaveType)) End Sub #End Region ' SaveCommand diff --git a/OptionsWindow/OptionModule.vb b/OptionsWindow/OptionModule.vb index dcf4e42..258388d 100644 --- a/OptionsWindow/OptionModule.vb +++ b/OptionsWindow/OptionModule.vb @@ -16,6 +16,8 @@ Friend Module OptionModule Friend m_ShowSurfQuality As SceneSurfQualityOpt ' Tipo di visualizzazione delle Zmap Friend m_nShowZmapType As Integer + ' Formato di salvataggio del progetto + Friend m_nGeomDBSaveType As NGE ' Colore di default in disegno Friend m_DefMaterialColor As Color3d @@ -122,6 +124,9 @@ Friend Module OptionModule m_ShowSurfQuality = DirectCast( Math.Min( Math.Max( nSSQ, -2), 2), SceneSurfQualityOpt) ' Inizializzo tipo di visualizzazione Zmap m_nShowZmapType = GetPrivateProfileInt(S_SCENE, K_SHOWZMAP, 9) + ' Inizializzo formato di salvataggio del progetto + Dim nGST As Integer = GetPrivateProfileInt(S_GEOMDB, K_SAVETYPE, NGE.CMPTEXT) + m_nGeomDBSaveType = DirectCast( Math.Min( Math.Max( nGST, 0), 3), NGE) ' Inizio colore di default in disegno Dim DefColor As New Color3d(0, 0, 0) GetPrivateProfileColor(S_GEOMDB, K_DEFAULTCOLOR, DefColor) diff --git a/OptionsWindow/OptionWindowV.xaml b/OptionsWindow/OptionWindowV.xaml index 3475d6a..54ba8d8 100644 --- a/OptionsWindow/OptionWindowV.xaml +++ b/OptionsWindow/OptionWindowV.xaml @@ -15,6 +15,7 @@ + @@ -85,7 +86,7 @@ SelectedItem="{Binding SelectedTextFont}" Height="25" Margin="10,5,0,0"/> - @@ -109,7 +110,23 @@ Grid.Row="0" Grid.Column="3" Margin="5,5,10,5" VerticalAlignment="Center"/> - + + + + + + + + + + +