EgtCAM5 :
- velocizzato comando spegni/accendi gruppo e tutti i suoi discendenti individualmente (Shift su lampadina in TreeView).
This commit is contained in:
@@ -82,20 +82,24 @@ Public Class LayerTreeViewItem
|
||||
End If
|
||||
Dim bOnOffGroup As Boolean = ((Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift) AndAlso Items.Count > 0
|
||||
If bOnOffGroup Then
|
||||
EgtEnableCommandLogger()
|
||||
' abilito/disabilito tutti i nodi del livello sotto di esso (e non oltre)
|
||||
For Each Node In Items
|
||||
Node.m_bOnOff = value
|
||||
' se abilitato, eseguo operazione
|
||||
If m_SendCmd Then
|
||||
Map.refProjectVM.SetLastInteger(Node.Id)
|
||||
If value Then
|
||||
Map.refProjectVM.ExecuteCommand(Controller.CMD.SHOW)
|
||||
Else
|
||||
Map.refProjectVM.ExecuteCommand(Controller.CMD.HIDE)
|
||||
Dim nStat As Integer
|
||||
EgtGetStatus(Node.Id, nStat)
|
||||
If value AndAlso nStat <> GDB_ST.ON_ Then
|
||||
EgtSetStatus(Node.Id, GDB_ST.ON_)
|
||||
ElseIf nStat <> GDB_ST.OFF Then
|
||||
EgtSetStatus(Node.Id, GDB_ST.OFF)
|
||||
End If
|
||||
End If
|
||||
Node.NotifyPropertyChanged(NameOf(OnOff))
|
||||
Next
|
||||
EgtDisableCommandLogger()
|
||||
EgtDraw()
|
||||
End If
|
||||
End If
|
||||
End Set
|
||||
|
||||
Reference in New Issue
Block a user