Compare commits

..

6 Commits

Author SHA1 Message Date
NicolaP 131a554568 Modifica versione 2021-09-22 19:36:40 +02:00
NicolaP b1e41c36f3 Fixed gestione inserimento nuovo materiale 2021-09-22 19:13:52 +02:00
NicolaP bf90fd5cee Aggiornamento versione 2021-09-17 19:40:13 +02:00
NicolaP 814c918258 Merge tag 'v_2.3h2' into develop
Rilascio release su ramo dedicato 2.3h2
2021-08-30 15:46:46 +02:00
NicolaP fc2a262893 Merge branch 'NicolaP' 2021-08-30 15:27:38 +02:00
NicolaP 40780892c1 Trascritti messaggi nel file dei messaggi 2021-08-30 15:18:38 +02:00
5 changed files with 141 additions and 32 deletions
+2 -2
View File
@@ -176,8 +176,8 @@ Public Class MainWindowM
EgtUILib.GetPrivateProfileString(S_LICENCE, K_KEY, "", sKey, sLicFile)
EgtSetKey(sKey)
' Recupero livello e opzioni della chiave
Dim bKey As Boolean = EgtGetKeyLevel(9423, 2308, 1, m_nKeyLevel) And
EgtGetKeyOptions(9423, 2308, 1, m_nKeyOptions)
Dim bKey As Boolean = EgtGetKeyLevel(9423, 2309, 1, m_nKeyLevel) And
EgtGetKeyOptions(9423, 2309, 1, m_nKeyOptions)
' Verifico abilitazione prodotto
Dim bProd As Boolean = GetKeyOption(KEY_OPT.PHOTO_BASE)
' Inizializzazione generale di EgtInterface
+2 -2
View File
@@ -59,5 +59,5 @@ Imports System.Windows
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>
<Assembly: AssemblyVersion("2.3.8.2")>
<Assembly: AssemblyFileVersion("2.3.8.2")>
<Assembly: AssemblyVersion("2.3.9.3")>
<Assembly: AssemblyFileVersion("2.3.9.3")>
+31 -9
View File
@@ -71,6 +71,8 @@
<DockPanel>
<UniformGrid Grid.Row="2" Columns="2"
DockPanel.Dock="Bottom">
<Button Content="{Binding NewMatMsg}" Grid.Column="1"
@@ -83,16 +85,36 @@
Margin="2.5,0,0,0"/>
</UniformGrid>
<EgtWPFLib5:EgtTextBox Text="{Binding NewMatName}"
DockPanel.Dock="Bottom" Width="240"
Visibility="{Binding NewMatName_Visibility}"
Margin="0,0,0,5"/>
<Grid DockPanel.Dock="Bottom" Visibility="{Binding NewMatName_Visibility}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="4*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<EgtWPFLib5:EgtTextBox Text="{Binding NewMatName}"
DockPanel.Dock="Bottom"
Margin="0,0,0,5"/>
<Button Content="{Binding OkMsg}" Grid.Column="1"
Command="{Binding OkCommand}"
IsEnabled="{Binding EnableOkNewMat}"
Style="{StaticResource OptionPanel_TextButton}"
Margin="2.5,0,0,2.5"/>
<Button Content="{Binding CancelMsg}" Grid.Column="2"
Command="{Binding CamcelCommand}"
Style="{StaticResource OptionPanel_TextButton}"
Margin="2.5,0,0,2.5"/>
</Grid>
<!--<EgtWPFLib5:EgtTextBox Text="{Binding NewMatName}"
DockPanel.Dock="Bottom" Width="240"
Visibility="{Binding NewMatName_Visibility}"
Margin="0,0,0,5"/>-->
<ListBox ItemsSource="{Binding MaterialList}"
SelectedItem="{Binding SelMaterial}"
Grid.RowSpan="2"
Margin="0,0,0,5"
Height="150"/>
<ListBox ItemsSource="{Binding MaterialList}"
SelectedItem="{Binding SelMaterial}"
Grid.RowSpan="2"
Margin="0,0,0,5"
Height="150"/>
</DockPanel>
+105 -18
View File
@@ -129,22 +129,18 @@ Public Class OptionWindowVM
Set(value As String)
m_NewMatName = value
' Verifico che il nome non sia vuoto
If Not String.IsNullOrWhiteSpace(m_NewMatName) Then
' Verifico che il nome non sia già utilizzato
Dim bNameExist As Boolean = False
For Each Material In m_MaterialList
If Material = m_NewMatName Then
bNameExist = True
Exit For
End If
Next
If Not bNameExist Then
m_MaterialList.Add(m_NewMatName)
End If
End If
' Nascondo textbox per il nome
NewMatName_Visibility = Visibility.Collapsed
m_NewMatName = String.Empty
AddNewMaterial()
NotifyPropertyChanged("EnableOkNewMat")
End Set
End Property
Private m_EnableOkNewMat As Boolean = False
Public Property EnableOkNewMat As Boolean
Get
Return m_EnableOkNewMat
End Get
Set(value As Boolean)
m_EnableOkNewMat = value
End Set
End Property
@@ -211,13 +207,25 @@ Public Class OptionWindowVM
Public ReadOnly Property BrowseMsg As String
Get
Return "Sfoglia"
Return EgtMsg(92058)
End Get
End Property
Public ReadOnly Property LabelMsg As String
Get
Return "Label"
Return EgtMsg(92056)
End Get
End Property
Public ReadOnly Property OkMsg As String
Get
Return "Ok"
End Get
End Property
Public ReadOnly Property CancelMsg As String
Get
Return "Cancel"
End Get
End Property
@@ -227,6 +235,8 @@ Public Class OptionWindowVM
Private m_cmdNewMat As ICommand
Private m_cmdRemoveMat As ICommand
Private m_cmdBrowse As ICommand
Private m_cmdOk As ICommand
Private m_cmdCanel As ICommand
#End Region ' FIELDS & PROPERTIES
@@ -275,6 +285,29 @@ Public Class OptionWindowVM
End While
End Sub
Private Function AddNewMaterial() As Boolean
If Not String.IsNullOrWhiteSpace(m_NewMatName) Then
' Verifico che il nome non sia già utilizzato
Dim bNameExist As Boolean = False
For Each Material In m_MaterialList
If Material = m_NewMatName Then
bNameExist = True
Exit For
End If
Next
If Not bNameExist Then
'm_MaterialList.Add(m_NewMatName)
m_EnableOkNewMat = True
Return True
End If
End If
' ' Nascondo textbox per il nome
' NewMatName_Visibility = Visibility.Collapsed
' m_NewMatName = String.Empty
m_EnableOkNewMat = False
Return False
End Function
#End Region
#Region "COMMANDS"
@@ -302,6 +335,60 @@ Public Class OptionWindowVM
#End Region ' NewMatCommand
#Region "OkCommand"
''' <summary>
''' Returns a command that do Exec.
''' </summary>
Public ReadOnly Property OkCommand As ICommand
Get
If m_cmdOk Is Nothing Then
m_cmdOk = New Command(AddressOf OkMat)
End If
Return m_cmdOk
End Get
End Property
''' <summary>
''' Execute the Exec. This method is invoked by the ExecCommand.
''' </summary>
Public Sub OkMat(ByVal param As Object)
' aggiungo il materiale alla lista
m_MaterialList.Add(m_NewMatName)
' Nascondo textbox per il nome
NewMatName_Visibility = Visibility.Collapsed
m_NewMatName = String.Empty
NotifyPropertyChanged("NewMatName")
End Sub
#End Region ' OkCommand
#Region "CancelCommand"
''' <summary>
''' Returns a command that do Exec.
''' </summary>
Public ReadOnly Property CamcelCommand As ICommand
Get
If m_cmdCanel Is Nothing Then
m_cmdCanel = New Command(AddressOf CancelMat)
End If
Return m_cmdCanel
End Get
End Property
''' <summary>
''' Execute the Exec. This method is invoked by the ExecCommand.
''' </summary>
Public Sub CancelMat(ByVal param As Object)
' Nascondo textbox per il nome
NewMatName_Visibility = Visibility.Collapsed
m_NewMatName = String.Empty
NotifyPropertyChanged("NewMatName")
End Sub
#End Region ' CancelCommand
#Region "RemoveMatCommand"
''' <summary>
+1 -1
View File
@@ -139,7 +139,7 @@ Module Map
Not IsNothing(LibMap.refSceneHostVM) AndAlso
Not IsNothing(PhotoMap.refOptionPanelVM) AndAlso Not IsNothing(PhotoMap.refListPageVM) AndAlso
Not IsNothing(PhotoMap.refDetailPageVM) AndAlso Not IsNothing(PhotoMap.refSearchPanelVM) AndAlso
PhotoMap.ContninueApplication
PhotoMap.ContinueApplication
End Function
#End Region ' Init