From dc5eec309f6a3aa047ae1f9c57f25bdabf047f34 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Wed, 11 Jun 2025 12:32:00 +0200 Subject: [PATCH] EgtWPFLib5 : - corretta ValidateMaxMat per Probe (prima non si abilitava Salva su nuovo probe). --- ToolDbWindow/ToolTreeView.vb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ToolDbWindow/ToolTreeView.vb b/ToolDbWindow/ToolTreeView.vb index 436994a..c6722bf 100644 --- a/ToolDbWindow/ToolTreeView.vb +++ b/ToolDbWindow/ToolTreeView.vb @@ -3560,11 +3560,11 @@ Public Class ToolTreeViewItem m_MaxMatError = EgtMsg(31106) ' Il Massimo Materiale deve essere maggiore di 0 End If End If - ' Per getto d'acqua - If Type = MCH_TF.WATERJET Then + ' Per getto d'acqua o tastatore + If (Type And MCH_TF.WATERJET) <> 0 OrElse (Type And MCH_TF.PROBE) <> 0 Then ' Non devo fare controlli m_MaxMatError = String.Empty - ' Per lame + ' Per lame ElseIf (Type And MCH_TF.SAWBLADE) <> 0 Then If Not IsNothing(m_Diam) Then Dim dDiam As Double = 0 @@ -3573,7 +3573,7 @@ Public Class ToolTreeViewItem m_MaxMatError = String.Format(EgtMsg(31117), 0.4 * dDiam) ' Il Massimo Materiale deve essere minore di {0} End If End If - ' Per tutti gli altri + ' Per tutti gli altri Else If Not IsNothing(m_Len) Then Dim dLen As Double = 0