- aggiunto reset calc su aggiungi, togli o duplica feature

- aggiunto reset calc su modifica side e group
This commit is contained in:
Emmanuele Sassi
2022-05-19 10:56:24 +02:00
parent 01ac9d36da
commit 62f85d6f92
2 changed files with 5 additions and 4 deletions
@@ -36,9 +36,8 @@ Public Class BTLFeatureVM
SelGeomFeature()
' rendo non calcolata questa feature
ResetCalcFeature()
Else
NotifyPropertyChanged("nSelGRP")
End If
NotifyPropertyChanged("nSelGRP")
NotifyPropertyChanged(NameOf(nSelGRP))
EgtDraw()
End If
@@ -73,9 +72,8 @@ Public Class BTLFeatureVM
SelGeomFeature()
' rendo non calcolata questa feature
ResetCalcFeature()
Else
NotifyPropertyChanged("nSelGRP")
End If
NotifyPropertyChanged("nSelSIDE")
EgtDraw()
End If
End Set
@@ -1006,6 +1006,7 @@ Public Class LeftPanelVM
If Not IsNothing(NewFeature) Then
Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM = Map.refProjectVM.BTLStructureVM.SelBTLPart.BTLFeatureVMList.FirstOrDefault(Function(x) x.BTLFeatureM Is NewFeature)
End If
SelPart.ResetCalcPart()
End Sub
#End Region ' CopyFeature
@@ -1108,6 +1109,7 @@ Public Class LeftPanelVM
If Not bMacroFlag Then NewFeat.SetDefaultValues()
Map.refProjectVM.BTLStructureVM.SelBTLPart.BTLPartM.AddBTLFeature(NewFeat)
Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM = Map.refProjectVM.BTLStructureVM.SelBTLPart.BTLFeatureVMList.FirstOrDefault(Function(x) x.BTLFeatureM Is NewFeat)
Map.refProjectVM.BTLStructureVM.SelBTLPart.ResetCalcPart()
End If
End If
End Sub
@@ -1155,6 +1157,7 @@ Public Class LeftPanelVM
End If
Map.refProjectVM.BTLStructureVM.SelBTLPart.BTLFeatureVMList.RemoveAt(Index)
EgtDraw()
Map.refProjectVM.BTLStructureVM.SelBTLPart.ResetCalcPart()
End If
End Sub