Files
egtbeamwall/EgtBEAMWALL.ViewerOptimizer/PartManager/PartManagerVM.vb
T
Emmanuele Sassi 73978d1ca9 - Correzione blocco rotazione in import per vista
- Aggiunto tooltip su descrizione parametri P
- Abilitati lucchetti e sblocco rotazione e flip manuali
2021-12-29 10:18:21 +01:00

39 lines
1.1 KiB
VB.net

Imports EgtBEAMWALL.Core.ConstGen
Imports EgtWPFLib5
Public Class PartManagerVM
Inherits VMBase
Private m_PartManager_IsEnabled As Boolean = True
Public ReadOnly Property PartManager_IsEnabled As Boolean
Get
Return m_PartManager_IsEnabled
End Get
End Property
Private m_Lock_Visibility As Visibility
Public ReadOnly Property Lock_Visibility As Visibility
Get
'Return Visibility.Collapsed
Return If(Not IsNothing(Map.refProjectVM.BTLStructureVM) AndAlso
Map.refProjectVM.BTLStructureVM.nPROJTYPE = Core.ConstBeam.BWType.WALL AndAlso
Map.refMainWindowVM.MainWindowM.GetKeyOption(KEY_OPT.NESTING_AUTO), Visibility.Visible, Visibility.Collapsed)
End Get
End Property
Sub New()
' salvo riferimento in Map
Map.SetRefPartManagerVM(Me)
End Sub
Friend Sub SetPartManagerIsEnabled(bIsEnabled As Boolean)
m_PartManager_IsEnabled = bIsEnabled
NotifyPropertyChanged(NameOf(PartManager_IsEnabled))
End Sub
Friend Sub LockVisibilityUpdate()
NotifyPropertyChanged(NameOf(Lock_Visibility))
End Sub
End Class