From 86f5560f203014f4034b9abd5f3fc888adcd09ea Mon Sep 17 00:00:00 2001 From: Nicola Pievani Date: Mon, 12 Apr 2021 13:51:59 +0000 Subject: [PATCH] EgtDOORCreator 2.3d1 : -> migliorato l'impaginazione dei dati per interfacce piccole. --- Assembly/AssemblyPageV.xaml | 68 ++++++---- DoorParameters/PartPageV.xaml | 233 +++++++++++++++++++++++----------- DoorParameters/PartPageVM.vb | 13 ++ MainWindow/MainWindowModel.vb | 4 +- My Project/AssemblyInfo.vb | 4 +- 5 files changed, 217 insertions(+), 105 deletions(-) diff --git a/Assembly/AssemblyPageV.xaml b/Assembly/AssemblyPageV.xaml index 365dc0a..2dda9de 100644 --- a/Assembly/AssemblyPageV.xaml +++ b/Assembly/AssemblyPageV.xaml @@ -52,6 +52,8 @@ + + + MaxWidth="120" Margin="0.4,2,10,3.2" + VerticalAlignment="Stretch" Height="Auto" /> + MaxWidth="120" Margin="0.4,2,10,3.2" + VerticalAlignment="Stretch" Height="Auto"/> + MaxWidth="120" Margin="0.4,2,10,3.2" + VerticalAlignment="Stretch" Height="Auto"/> + MaxWidth="120" Margin="0.4,2,10,3.2" + VerticalAlignment="Stretch" Height="Auto"/> + MaxWidth="120" Margin="0.4,2,10,3.2" + VerticalAlignment="Stretch" Height="Auto"/> + MaxWidth="120" Margin="0.4,2,10,3.2" + VerticalAlignment="Stretch" Height="Auto"/> - + MaxWidth="120" Margin="0.4,2,10,3.2" + VerticalAlignment="Stretch" Height="Auto"/> + MaxWidth="120" Margin="0.4,2,10,3.2" + VerticalAlignment="Stretch" Height="Auto"/> + MaxWidth="120" Margin="0.4,2,10,3.2" + VerticalAlignment="Stretch" Height="Auto"/> @@ -190,7 +203,7 @@ ItemsSource="{Binding CurrAssembly.EdgeTypeList}" SelectedItem="{Binding CurrAssembly.LockEdgeType}" Style="{StaticResource DoorEdgeParamsCmBx}" - Margin="0.4,2,39.6,2"/> + MaxWidth="120" Margin="0.4,2,10,3.2"/> - + MaxWidth="120" Margin="0.4,2,10,3.2"/> + MaxWidth="120" Margin="0.4,2,10,3.2"/> + MaxWidth="120" Margin="0.4,2,10,3.2"/> + + + MaxWidth="120" Margin="10,2,10,3.2"/> + MaxWidth="120" Margin="10,2,10,3.2"/> + MaxWidth="120" Margin="10,2,10,3.2"/> + MaxWidth="120" Margin="10,2,10,3.2"/> @@ -275,6 +289,8 @@ + + @@ -294,7 +310,8 @@ + MaxWidth="120" Margin="0.4,2,10,3.2" + VerticalAlignment="Stretch" Height="Auto"/> + MaxWidth="120" Margin="0.4,2,10,3.2" + VerticalAlignment="Stretch" Height="Auto"/> + MaxWidth="120" Margin="0.4,2,10,3.2" + VerticalAlignment="Stretch" Height="Auto"/> + MaxWidth="120" Margin="0.4,2,10,3.2" + VerticalAlignment="Stretch" Height="Auto"/> diff --git a/DoorParameters/PartPageV.xaml b/DoorParameters/PartPageV.xaml index 3c441ed..52f5400 100644 --- a/DoorParameters/PartPageV.xaml +++ b/DoorParameters/PartPageV.xaml @@ -21,7 +21,7 @@ - + @@ -79,9 +79,10 @@ + Style="{StaticResource DoorParamsTxBl}" Margin="10,0,5,0" MaxWidth="120"/> + @@ -99,7 +100,8 @@ Margin="2,0,0,2"/> @@ -108,14 +110,16 @@ Margin="2,0,0,2"/> - @@ -178,19 +183,12 @@ Margin="0.4,2,30,4" IsEnabled="{Binding IsRaedOnly, Converter={StaticResource TrueToFalse}}"/> - - + Margin="20,2,0,2"/>--> + - + MaxWidth="120" Margin="10,2,10,4"/>--> + + MaxWidth="120" Margin="10,2,20,4" + IsReadOnly="{Binding IsRaedOnly}"/> + MaxWidth="120" Margin="10,2,20,4" + IsReadOnly="{Binding IsRaedOnly}"/> + MaxWidth="120" Margin="10,2,20,4" + IsReadOnly="{Binding IsReadOnly}"/> - + MaxWidth="120" Margin="10,2,20,4" + IsReadOnly="{Binding IsRaedOnly}"/> + + - + - - - - - - - - - - + + + + + --> + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -308,72 +382,77 @@ Style="{StaticResource DoorParamsChBx}" IsChecked="{Binding CurrPart.TopShapeIsChecked}" VerticalAlignment="Stretch" - Margin="2,0,02,0"/> + Margin="2,0,0.2,0"/> - - - - - - - - - + + + + + + + + + + + + - - - - + - - - + diff --git a/DoorParameters/PartPageVM.vb b/DoorParameters/PartPageVM.vb index 816c943..f7ac86c 100644 --- a/DoorParameters/PartPageVM.vb +++ b/DoorParameters/PartPageVM.vb @@ -47,6 +47,19 @@ Public Class PartPageVM End Get End Property + Public ReadOnly Property AllignGropBox As Visibility + Get + If Not IsNothing(m_CurrPart) AndAlso m_CurrPart.TypePart.Contains("F") Then + Return Visibility.Collapsed + End If + If OptionModule.m_DisableArch = Visibility.Visible Then + Return Visibility.Hidden + Else + Return Visibility.Collapsed + End If + End Get + End Property + Public ReadOnly Property DispositionVisibility As Visibility Get Return OptionModule.DispositionVisibility() diff --git a/MainWindow/MainWindowModel.vb b/MainWindow/MainWindowModel.vb index 51b07ec..62a3e8c 100644 --- a/MainWindow/MainWindowModel.vb +++ b/MainWindow/MainWindowModel.vb @@ -57,8 +57,8 @@ Friend Class MainWindowModel EgtUILib.GetPrivateProfileString(S_LICENCE, K_KEY, "", sKey, sLicFile) EgtSetKey(sKey) ' Recupero livello e opzioni della chiave - Dim bKey As Boolean = EgtGetKeyLevel(3279, 2303, 1, IniFile.m_nKeyLevel) And - EgtGetKeyOptions(3279, 2303, 1, IniFile.m_nKeyOptions) + Dim bKey As Boolean = EgtGetKeyLevel(3279, 2304, 1, IniFile.m_nKeyLevel) And + EgtGetKeyOptions(3279, 2304, 1, IniFile.m_nKeyOptions) 'Inizializzazione generale di EgtInterface m_nDebug = GetMainPrivateProfileInt(S_GENERAL, K_DEBUG, 0) Dim sLogFile As String = IniFile.m_sTempDir & "\" & GENLOG_FILE_NAME.Replace("#", m_nInstance.ToString()) diff --git a/My Project/AssemblyInfo.vb b/My Project/AssemblyInfo.vb index f0c6eff..09a40b5 100644 --- a/My Project/AssemblyInfo.vb +++ b/My Project/AssemblyInfo.vb @@ -72,5 +72,5 @@ Imports System.Windows ' by using the '*' as shown below: ' - - + +