diff --git a/CompoTrfDataWindow/CompoTrfDataWindowV.xaml b/CompoTrfDataWindow/CompoTrfDataWindowV.xaml
new file mode 100644
index 0000000..91f1590
--- /dev/null
+++ b/CompoTrfDataWindow/CompoTrfDataWindowV.xaml
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/CompoTrfDataWindow/CompoTrfDataWindowV.xaml.vb b/CompoTrfDataWindow/CompoTrfDataWindowV.xaml.vb
new file mode 100644
index 0000000..c799d10
--- /dev/null
+++ b/CompoTrfDataWindow/CompoTrfDataWindowV.xaml.vb
@@ -0,0 +1,22 @@
+Public Class CompoTrfDataWindowV
+
+ Private m_CompoTrfDataWindowVM As CompoTrfDataWindowVM
+
+ Sub New(Owner As Window, CompoTrfDataWindowVM As CompoTrfDataWindowVM)
+ MyBase.New(Owner)
+ ' This call is required by the designer.
+ InitializeComponent()
+ Me.DataContext = CompoTrfDataWindowVM
+ ' Assegno al riferimento locale al VM il VM preso dal DataContext
+ m_CompoTrfDataWindowVM = CompoTrfDataWindowVM
+ End Sub
+
+ Private Sub OkBtn_Click(sender As Object, e As RoutedEventArgs) Handles OkBtn.Click
+ DialogResult = True
+ End Sub
+
+ Private Sub Cancel_Click(sender As Object, e As RoutedEventArgs) Handles CancelBtn.Click
+ DialogResult = False
+ End Sub
+
+End Class
diff --git a/CompoTrfDataWindow/CompoTrfDataWindowVM.vb b/CompoTrfDataWindow/CompoTrfDataWindowVM.vb
new file mode 100644
index 0000000..56b888f
--- /dev/null
+++ b/CompoTrfDataWindow/CompoTrfDataWindowVM.vb
@@ -0,0 +1,127 @@
+Imports EgtUILib
+
+Public Class CompoTrfDataWindowVM
+
+#Region "FIELDS & PROPERTIES"
+
+ Private m_OrdCode As String
+ Public Property OrdCode As String
+ Get
+ Return m_OrdCode
+ End Get
+ Set(value As String)
+ m_OrdCode = value
+ End Set
+ End Property
+
+ Private m_OrdDesc As String
+ Public Property OrdDesc As String
+ Get
+ Return m_OrdDesc
+ End Get
+ Set(value As String)
+ m_OrdDesc = value
+ End Set
+ End Property
+
+ Private m_MatCode As String
+ Public Property MatCode As String
+ Get
+ Return m_MatCode
+ End Get
+ Set(value As String)
+ m_MatCode = value
+ End Set
+ End Property
+
+ Private m_SurfCode As String
+ Public Property SurfCode As String
+ Get
+ Return m_SurfCode
+ End Get
+ Set(value As String)
+ m_SurfCode = value
+ End Set
+ End Property
+
+ Private m_Thickness As Double
+ Public Property Thickness As Double
+ Get
+ Return m_Thickness
+ End Get
+ Set(value As Double)
+ m_Thickness = value
+ End Set
+ End Property
+
+#Region "Messages"
+
+ Public ReadOnly Property TitleMsg As String
+ Get
+ Return EgtMsg(MSG_DRAWPAGEUC + 19)
+ End Get
+ End Property
+
+ Public ReadOnly Property OrdCodeMsg As String
+ Get
+ Return EgtMsg(MSG_DRAWPAGEUC + 10)
+ End Get
+ End Property
+
+ Public ReadOnly Property OrdDescMsg As String
+ Get
+ Return EgtMsg(MSG_DRAWPAGEUC + 11)
+ End Get
+ End Property
+
+ Public ReadOnly Property MatCodeMsg As String
+ Get
+ Return EgtMsg(MSG_DRAWPAGEUC + 12)
+ End Get
+ End Property
+
+ Public ReadOnly Property SurfCodeMsg As String
+ Get
+ Return EgtMsg(MSG_DRAWPAGEUC + 13)
+ End Get
+ End Property
+
+ Public ReadOnly Property ThicknessMsg As String
+ Get
+ Return EgtMsg(MSG_DRAWPAGEUC + 14)
+ End Get
+ End Property
+
+#End Region ' Messages
+
+#End Region 'FIELDS & PROPERTIES
+
+#Region "CONSTRUCTOR"
+
+ Sub New()
+
+ End Sub
+
+#End Region ' CONSTRUCTOR
+
+#Region "METHODS"
+
+ Friend Sub SetData(sOrdCode As String, sOrdDesc As String, sMatCode As String, sSurfCode As String, dTh As Double)
+ OrdCode = sOrdCode
+ OrdDesc = sOrdDesc
+ MatCode = sMatCode
+ SurfCode = sSurfCode
+ Thickness = LenToString(dTh, 2)
+ End Sub
+
+ Friend Sub GetData(ByRef sOrdCode As String, ByRef sOrdDesc As String, ByRef sMatCode As String, ByRef sSurfCode As String, ByRef dTh As Double)
+ sOrdCode = OrdCode
+ sOrdDesc = OrdDesc
+ sMatCode = MatCode
+ sSurfCode = SurfCode
+ StringToLen(Thickness, dTh)
+ End Sub
+
+#End Region
+
+End Class
diff --git a/CompoWindow/CompoListPage/CompoListPageV.xaml b/CompoWindow/CompoListPage/CompoListPageV.xaml
index 5601f45..4161803 100644
--- a/CompoWindow/CompoListPage/CompoListPageV.xaml
+++ b/CompoWindow/CompoListPage/CompoListPageV.xaml
@@ -16,7 +16,7 @@
IsChecked="{Binding Drip_IsChecked}"
Style="{StaticResource CompoWindow_ToggleButton}"
Margin="2.5,0,0,0"
- IsEnabled="False"/>
+ IsEnabled="True"/>
+
+
diff --git a/CompoWindow/CompoManager/CompoManagerVM.vb b/CompoWindow/CompoManager/CompoManagerVM.vb
index a93369f..7740f82 100644
--- a/CompoWindow/CompoManager/CompoManagerVM.vb
+++ b/CompoWindow/CompoManager/CompoManagerVM.vb
@@ -95,6 +95,17 @@ Public Class CompoManagerVM
End Set
End Property
+ Private m_TrfData_Visibility As Visibility
+ Public Property TrfData_Visibility As Visibility
+ Get
+ Return m_TrfData_Visibility
+ End Get
+ Set(value As Visibility)
+ m_TrfData_Visibility = value
+ NotifyPropertyChanged("TrfData_Visibility")
+ End Set
+ End Property
+
#Region "Messages"
Public ReadOnly Property TopMsg As String
@@ -159,6 +170,13 @@ Public Class CompoManagerVM
' assegno valori di default numero e nome pezzi
PartNum = 1.ToString
PartName = String.Empty
+ If Not CompoWindowMap.refCompoWindowVM.bTrfData Then
+ TrfData_Visibility = Windows.Visibility.Collapsed
+ Else
+ PartName_Visibility = Windows.Visibility.Collapsed
+ TrfData_Visibility = Windows.Visibility.Visible
+ End If
+
End Sub
#End Region ' METHODS
diff --git a/CompoWindow/CompoParamPage/CompoParamPageV.xaml b/CompoWindow/CompoParamPage/CompoParamPageV.xaml
index 9c58e41..bd7bca2 100644
--- a/CompoWindow/CompoParamPage/CompoParamPageV.xaml
+++ b/CompoWindow/CompoParamPage/CompoParamPageV.xaml
@@ -18,7 +18,7 @@
IsChecked="{Binding Drip_IsChecked}"
Style="{StaticResource CompoWindow_ToggleButton}"
Margin="2.5,0,0,0"
- IsEnabled="False"/>
+ IsEnabled="{Binding Drip_IsEnabled}"/>
@@ -83,7 +83,7 @@
TextWrapping="Wrap"
TextAlignment="Justify"
Margin="0,0,0,5"/>
-
+
diff --git a/OptionPanel/MachiningTab/SplitModeVM.vb b/OptionPanel/MachiningTab/SplitModeVM.vb
index 37ac77d..1d40724 100644
--- a/OptionPanel/MachiningTab/SplitModeVM.vb
+++ b/OptionPanel/MachiningTab/SplitModeVM.vb
@@ -149,7 +149,7 @@ Public Class SplitModeVM
Public ReadOnly Property PauseMsg As String
Get
- Return EgtMsg(MSG_SPLITPAGEUC + 17)
+ Return EgtMsg(MSG_SPLITPAGEUC + 31)
End Get
End Property
diff --git a/OptionPanel/OptionPanelV.xaml b/OptionPanel/OptionPanelV.xaml
index c63c09d..faa028b 100644
--- a/OptionPanel/OptionPanelV.xaml
+++ b/OptionPanel/OptionPanelV.xaml
@@ -7,34 +7,33 @@
IsTopDockable="False" IsBottomDockable="False" IsLeftDockable="True"
IsRightDockable="False" Style="{StaticResource Option_EgtFloatingPanel}">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/OptionPanel/SimulTab/SimulTabV.xaml b/OptionPanel/SimulTab/SimulTabV.xaml
index bd37f38..7323eee 100644
--- a/OptionPanel/SimulTab/SimulTabV.xaml
+++ b/OptionPanel/SimulTab/SimulTabV.xaml
@@ -102,4 +102,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/OptionPanel/SimulTab/SimulTabVM.vb b/OptionPanel/SimulTab/SimulTabVM.vb
index d8cf456..480db7c 100644
--- a/OptionPanel/SimulTab/SimulTabVM.vb
+++ b/OptionPanel/SimulTab/SimulTabVM.vb
@@ -1,4 +1,5 @@
Imports System.Collections.ObjectModel
+Imports System.IO
Imports EgtUILib
Imports EgtWPFLib5
@@ -140,6 +141,65 @@ Public Class SimulTabVM
End Set
End Property
+ Private m_Estimation_IsEnabled As Boolean = False
+ Public Property Estimation_IsEnabled As Boolean
+ Get
+ Return m_Estimation_IsEnabled
+ End Get
+ Set(value As Boolean)
+ m_Estimation_IsEnabled = value
+ NotifyPropertyChanged("Estimation_IsEnabled")
+ End Set
+ End Property
+
+ Public ReadOnly Property Time As String
+ Get
+ Dim nTotalTime As Integer = 0
+ EgtGetInfo(EgtGetCurrMachGroup(), "Ttot", nTotalTime)
+ Dim sTotalTime As New TimeSpan(0, 0, nTotalTime)
+ Return sTotalTime.ToString("hh\:mm\:ss")
+ End Get
+ End Property
+
+ Public ReadOnly Property CutLen As String
+ Get
+ Dim dTotalLength As Double = 0
+ EgtGetInfo(EgtGetCurrMachGroup(), "Ltot", dTotalLength)
+ Dim sTotalLength As String = ""
+ If EgtUiUnitsAreMM() Then
+ sTotalLength = DoubleToString(dTotalLength / 1000, 1) & " m"
+ Else
+ sTotalLength = DoubleToString(dTotalLength / (ONEINCH * 12), 1) & " ft"
+ End If
+ Return sTotalLength
+ End Get
+ End Property
+
+ Public ReadOnly Property NetArea As String
+ Get
+ Dim dNetArea As Double = 0
+ EgtGetInfo(EgtGetCurrMachGroup(), "NetArea", dNetArea)
+ Dim sTotalLength As String = ""
+ If EgtUiUnitsAreMM() Then
+ sTotalLength = DoubleToString(dNetArea / 1000000, 1) & " m²"
+ Else
+ sTotalLength = DoubleToString(dNetArea / (ONEINCH * 12 * ONEINCH * 12), 1) & " ft²"
+ End If
+ Return sTotalLength
+ End Get
+ End Property
+
+ Public ReadOnly Property Usage As String
+ Get
+ Dim dRawArea As Integer = 0
+ EgtGetInfo(EgtGetCurrMachGroup(), "RawArea", dRawArea)
+ Dim dNetArea As Double = 0
+ EgtGetInfo(EgtGetCurrMachGroup(), "NetArea", dNetArea)
+ Dim dUsage As Double = If(dRawArea > EPS_SMALL, dNetArea / dRawArea, 1)
+ Return DoubleToString(dUsage * 100, 1) & " %"
+ End Get
+ End Property
+
' Definizione comandi
Private m_cmdToolMode As ICommand
Private m_cmdHeadMode As ICommand
@@ -147,6 +207,7 @@ Public Class SimulTabVM
Private m_cmdStep As ICommand
Private m_cmdPlayPause As ICommand
Private m_cmdStop As ICommand
+ Private m_cmdDetails As ICommand
#Region "Messages"
@@ -156,6 +217,42 @@ Public Class SimulTabVM
End Get
End Property
+ Public ReadOnly Property EstimationMsg As String
+ Get
+ Return EgtMsg(MSG_SIMULATIONPAGEUC + 19) 'Stime
+ End Get
+ End Property
+
+ Public ReadOnly Property TimeMsg As String
+ Get
+ Return EgtMsg(MSG_SIMULATIONPAGEUC + 15) 'Tempo totale
+ End Get
+ End Property
+
+ Public ReadOnly Property CutLenMsg As String
+ Get
+ Return EgtMsg(MSG_SIMULATIONPAGEUC + 16) 'Lunghezza totale
+ End Get
+ End Property
+
+ Public ReadOnly Property NetAreaMsg As String
+ Get
+ Return EgtMsg(MSG_SIMULATIONPAGEUC + 17) 'Area utilizzata
+ End Get
+ End Property
+
+ Public ReadOnly Property UsageMsg As String
+ Get
+ Return EgtMsg(MSG_SIMULATIONPAGEUC + 18) 'Percentuale di utilizzo
+ End Get
+ End Property
+
+ Public ReadOnly Property DetailsMsg As String
+ Get
+ Return EgtMsg(MSG_SIMULATIONPAGEUC + 20) 'Dettagli
+ End Get
+ End Property
+
#End Region ' Messages
#Region "ToolTip"
@@ -226,6 +323,20 @@ Public Class SimulTabVM
' Errore nella generazione del programma CN
OmagOFFICEMap.refStatusBarVM.SetOutputMessage(EgtMsg(90314), MSG_TYPE.ERROR_)
End If
+ ' Eseguo la stima di tempi, lunghezze ...
+ Dim bEstim As Boolean = (GetPrivateProfileInt(S_MACH_ESTIMATIONS, K_ENABLEEST, 0, CurrentMachine.sMachIniFile) <> 0)
+ If bEstim Then
+ Estimation_IsEnabled = True
+ EgtSetCurrPhase(1)
+ EgtEstimate(OmagOFFICEMap.refMainWindowVM.MainWindowM.sTempDir & "\MachProj.html", "OmagCut ver." & OmagOFFICEMap.refMainWindowVM.MainWindowM.sVersion)
+ ' Impostazioni box stime
+ NotifyPropertyChanged("Time")
+ NotifyPropertyChanged("CutLen")
+ NotifyPropertyChanged("NetArea")
+ NotifyPropertyChanged("Usage")
+ Else
+ Estimation_IsEnabled = False
+ End If
' Nascondo eventuali pezzi in parcheggio
HideParkedParts()
' Nascondo eventuale contorno da foto
@@ -664,6 +775,82 @@ Public Class SimulTabVM
#End Region ' StopCommand
+ Private Function GetEstimationFileName(bAskSave As Boolean, ByRef sEstFile As String, ByRef sInfo As String) As Boolean
+ Dim bOk As Boolean = True
+ ' Recupero e verifico la path del progetto corrente
+ Dim sCurrFilePath As String = String.Empty
+ EgtGetCurrFilePath(sCurrFilePath)
+ If bAskSave Then
+ If String.IsNullOrEmpty(sCurrFilePath) OrElse EgtGetModified() Then
+ ' Il progetto deve essere salvato prima di poter essere generato. Vuoi farlo ?
+ If MessageBox.Show(EgtMsg(MSG_SIMULATION + 31), EgtMsg(MSG_SIMULATION + 15), MessageBoxButton.YesNo, MessageBoxImage.Warning) = MessageBoxResult.No Then
+ ' Abbandono
+ bOk = False
+ Else
+ ' Lancio salvataggio
+ OmagOFFICEMap.refSceneHostVM.SaveProject()
+ EgtGetCurrFilePath(sCurrFilePath)
+ ' Se non salvato, abbandono
+ If EgtGetModified() Then bOk = False
+ End If
+ End If
+ Else
+ If String.IsNullOrEmpty(sCurrFilePath) Then
+ ' File delle stime non trovato
+ MessageBox.Show(EgtMsg(MSG_SIMULATION + 18), EgtMsg(MSG_SIMULATION + 15), MessageBoxButton.OK, MessageBoxImage.Warning)
+ bOk = False
+ End If
+ End If
+ ' Creo la path del file di stima e relativo info (con nome gruppo se gestiti)
+ If Not String.IsNullOrEmpty(sCurrFilePath) Then
+ sEstFile = Path.ChangeExtension(sCurrFilePath, Nothing)
+ sInfo = "EgtCAM5 - " & sCurrFilePath
+ Dim sMGrpName As String = String.Empty
+ If EgtGetMachGroupName(EgtGetCurrMachGroup(), sMGrpName) Then
+ sEstFile &= "_" & sMGrpName & ".html"
+ sInfo &= "-" & sMGrpName
+ Else
+ sEstFile &= ".html"
+ End If
+ End If
+ Return bOk
+ End Function
+
+#Region "Details"
+
+ '''
+ ''' Returns a command that create a new tool.
+ '''
+ Public ReadOnly Property Details_Command As ICommand
+ Get
+ If m_cmdDetails Is Nothing Then
+ m_cmdDetails = New Command(AddressOf Details)
+ End If
+ Return m_cmdDetails
+ End Get
+ End Property
+
+ '''
+ ''' Creata the new tool. This method is invoked by the NewCommand.
+ '''
+ Public Sub Details(ByVal param As Object)
+ ' Determino il nome del file contenente le stime
+ Dim sEstFile As String = OmagOFFICEMap.refMainWindowVM.MainWindowM.sTempDir & "\MachProj.html"
+ Dim sInfo As String = ""
+ 'GetEstimationFileName(False, sEstFile, sInfo)
+ ' Verifico che il file esista
+ If Not File.Exists(sEstFile) Then
+ ' File delle stime non trovato
+ MessageBox.Show(EgtMsg(MSG_SIMULATION + 15), EgtMsg(MSG_SIMULATION + 14), MessageBoxButton.OK, MessageBoxImage.Warning)
+ Return
+ End If
+ ' Visualizzazione
+ Dim EstimationsWnd As New EstimationsDetailsWndV(Application.Current.MainWindow, New EstimationsDetailsWndVM(sEstFile, CurrentMachine.sMachIniFile))
+ EstimationsWnd.ShowDialog()
+ End Sub
+
+#End Region ' Details
+
#End Region
End Class
diff --git a/SideEntityControl/SideEntityControlVM.vb b/SideEntityControl/SideEntityControlVM.vb
index aa6616d..0bba5b6 100644
--- a/SideEntityControl/SideEntityControlVM.vb
+++ b/SideEntityControl/SideEntityControlVM.vb
@@ -162,6 +162,8 @@ Public Class SideEntityControlVM
SideAngleEntity.m_ModifySideAngle = AddressOf ModifySideAngle
SideAngleEntity.m_RefreshSideAngleText = AddressOf RefreshSideAngleText
+ DripEntity.m_ModifyDrip = AddressOf ModifyDrip
+ DripEntity.m_RefreshSideAngleText = AddressOf RefreshSideAngleText
m_CallingWindow = CallingWindow
m_CallingWndScene = CallingWndScene
m_Mode = Mode
@@ -692,10 +694,8 @@ Public Class SideEntityControlVM
Friend Sub Close()
If m_CallingWindow = CallingWindowOpt.COMPO Then
' Svuoto layer in cui sono presenti i testi con le inclinazioni dei lati
- If m_Mode = ModeOpt.SIDEANGLE Then
- Dim PartId As Integer = EgtGetFirstInGroup(GDB_ID.ROOT)
- EgtEmptyGroup(EgtGetFirstNameInGroup(PartId, SIDE_ANGLE_LAYER))
- End If
+ Dim PartId As Integer = EgtGetFirstInGroup(GDB_ID.ROOT)
+ EgtEmptyGroup(EgtGetFirstNameInGroup(PartId, SIDE_ANGLE_LAYER))
ElseIf m_CallingWindow = CallingWindowOpt.DXFIMPORT Then
' Nessuna azione necessaria
End If
@@ -800,7 +800,7 @@ Public MustInherit Class SideEntity
Return Visibility.Visible
End If
Else
- Return Visibility.Visible
+ Return Visibility.Collapsed
End If
End Get
End Property
@@ -932,6 +932,9 @@ End Class
Friend Class DripEntity
Inherits SideEntity
+ Friend Shared m_ModifyDrip As Action(Of String, Double)
+ Friend Shared m_RefreshSideAngleText As Action
+
Private m_bHaveDrip As Boolean
Public Property bHaveDrip As Boolean
Get
@@ -947,8 +950,14 @@ Friend Class DripEntity
Return m_bHaveDrip
End Get
Set(value As Boolean)
- m_bHaveDrip = value
- NotifyPropertyChanged("bIsChecked")
+ If value <> m_bHaveDrip Then
+ m_bHaveDrip = value
+ ' Lo modifico nella geometria e nella lista inclinazioni
+ m_ModifyDrip(sEntityName, m_bHaveDrip)
+ ' Aggiorno tutti i testi
+ m_RefreshSideAngleText()
+ NotifyPropertyChanged("bIsChecked")
+ End If
End Set
End Property
diff --git a/UnderDrillControl/UnderDrillControlV.xaml b/UnderDrillControl/UnderDrillControlV.xaml
new file mode 100644
index 0000000..aca5446
--- /dev/null
+++ b/UnderDrillControl/UnderDrillControlV.xaml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/UnderDrillControl/UnderDrillControlV.xaml.vb b/UnderDrillControl/UnderDrillControlV.xaml.vb
new file mode 100644
index 0000000..178cce8
--- /dev/null
+++ b/UnderDrillControl/UnderDrillControlV.xaml.vb
@@ -0,0 +1,13 @@
+Public Class UnderDrillControlV
+
+ Private WithEvents m_UnderDrillControlVm As UnderDrillControlVM
+
+ Sub New(UnderDrillControlVm As UnderDrillControlVM)
+ ' This call is required by the designer.
+ InitializeComponent()
+ Me.DataContext = UnderDrillControlVm
+ ' Assegno al riferimento locale al VM il VM preso dal DataContext
+ m_UnderDrillControlVm = UnderDrillControlVm
+ End Sub
+
+End Class
diff --git a/UnderDrillControl/UnderDrillControlVM.vb b/UnderDrillControl/UnderDrillControlVM.vb
new file mode 100644
index 0000000..74a81b4
--- /dev/null
+++ b/UnderDrillControl/UnderDrillControlVM.vb
@@ -0,0 +1,59 @@
+Imports EgtUILib
+Imports EgtWPFLib5
+
+Public Class UnderDrillControlVM
+ Inherits VMBase
+
+ Private m_dDrillDepth As Double
+ Public Property dDrillDepth As String
+ Get
+ Return LenToString(m_dDrillDepth, -2)
+ End Get
+ Set(value As String)
+ StringToLen(value, m_dDrillDepth)
+ WriteMainPrivateProfileString(S_SIDES, K_UNDERDRILLDEPTH, DoubleToString(m_dDrillDepth, 2))
+ ' Aggiorno affondamento dei fori da sotto già definiti
+ Dim nPartId As Integer = EgtGetFirstPart()
+ While nPartId <> GDB_ID.NULL
+ Dim nLayId As Integer = EgtGetFirstLayer(nPartId)
+ While nLayId <> GDB_ID.NULL
+ Dim sLayName As String = ""
+ If EgtGetName(nLayId, sLayName) And sLayName = NAME_UNDERDRILL Then
+ Dim nEntId As Integer = EgtGetFirstInGroup(nLayId)
+ EgtSetInfo(nEntId, INFO_DEPTH, m_dDrillDepth)
+ End If
+ nLayId = EgtGetNextLayer(nLayId)
+ End While
+ nPartId = EgtGetNextPart(nPartId)
+ End While
+ End Set
+ End Property
+ Private Sub SetdDrillDepth(value As Double)
+ m_dDrillDepth = value
+ NotifyPropertyChanged("dDrillDepth")
+ End Sub
+
+#Region "Messages"
+
+ Public ReadOnly Property DrillDepthMsg As String
+ Get
+ Return EgtMsg(MSG_IMPORTPAGEUC + 11) ' Affondamento
+ End Get
+ End Property
+
+#End Region ' Messages
+
+#Region "CONSTRUCTOR"
+
+ Sub New(CallingWndScene As Scene)
+ ' Avvio l'inizializzazione della mappa passandogli il riferimento al DxfImportWindowVM
+ DxfImportWindowMap.SetRefUnderDrillControlVM(Me)
+ ' Imposto contesto corrente
+ EgtSetCurrentContext(CallingWndScene.GetCtx())
+ ' Aggiorno valori
+ SetdDrillDepth(GetMainPrivateProfileDouble(S_SIDES, K_UNDERDRILLDEPTH, 10))
+ End Sub
+
+#End Region ' CONSTRUCTOR
+
+End Class