Compare commits

...

1 Commits

Author SHA1 Message Date
Emmanuele Sassi df3b6ae657 - gestito update del priority su pezzi in ottimizzazione
- resettato stato calc su modifica priority
2023-06-08 19:32:22 +02:00
4 changed files with 12 additions and 4 deletions
@@ -120,9 +120,17 @@ Public Class BTLFeatureVM
End Get End Get
Set(value As String) Set(value As String)
Dim nTemp As Integer = 0 Dim nTemp As Integer = 0
If Integer.TryParse(value, nTemp) Then If Integer.TryParse(value, nTemp) Then
m_BTLFeatureM.nPriority = nTemp If EgtSetInfo(nFeatureId, BTL_FTR_PRIORITY, nTemp) Then
EgtSetInfo( nFeatureId, BTL_FTR_PRIORITY, m_BTLFeatureM.nPriority) m_BTLFeatureM.nPriority = nTemp
' setto feature da ricalcolare
ResetCalcFeature()
' se in View
If Map.refMainMenuVM.SelPage = Pages.VIEW Then
' imposto modificato per copie
EgtDuploSetModified(m_BTLPartM.nPartId)
End If
End If
End If End If
NotifyPropertyChanged(NameOf(sPriority)) NotifyPropertyChanged(NameOf(sPriority))
End Set End Set
@@ -2164,7 +2164,7 @@ Public Class BTLPartVM
' imposto path disegno da mostrare in BottomPanel ' imposto path disegno da mostrare in BottomPanel
Dim SelPBTLParam As BTLParamVM = Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM.SelPBTLParam Dim SelPBTLParam As BTLParamVM = Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM.SelPBTLParam
If Not IsNothing(SelPBTLParam) Then Map.refBottomPanelVM.SetCurrDraw(SelPBTLParam.sDrawPath) If Not IsNothing(SelPBTLParam) Then Map.refBottomPanelVM.SetCurrDraw(SelPBTLParam.sDrawPath)
Case NameOf(sender.bDO) Case NameOf(sender.bDO), NameOf(sender.sPriority)
NotifyPropertyChanged(NameOf(bDOALL)) NotifyPropertyChanged(NameOf(bDOALL))
' setto pezzo da ricalcolare ' setto pezzo da ricalcolare
'ResetCalcTotalPart() 'ResetCalcTotalPart()
Binary file not shown.
Binary file not shown.