From 1d293fa4275038fabf97a0768ade0c3e995e55c2 Mon Sep 17 00:00:00 2001 From: Emmanuele Sassi Date: Wed, 31 Aug 2022 16:42:28 +0200 Subject: [PATCH] - gestione dei punti di inizio lavorazione - introduzione soglia su tabella TFS in modalita' differenza lunghezze - migliorie e correzioni --- 3dPrintApp/Constants/Const3dPrint.vb | 2 + 3dPrintApp/Constants/ConstGen.vb | 1 + .../ControllerInputPanelVM.vb | 1 + .../DispositionPanel/DispositionPanelV.xaml | 14 + .../DispositionPanel/DispositionPanelVM.vb | 96 ++++ 3dPrintApp/LeftPanel/LeftPanelVM.vb | 9 + 3dPrintApp/MachiningManager/CurrMachining.vb | 13 +- 3dPrintApp/SceneHost/MySceneHostVM.vb | 283 ++++++++-- 3dPrintApp/SliderManager/SliderManagerVM.vb | 3 - .../StartMachPanel/StartMachPanelV.xaml | 69 ++- 3dPrintApp/StartMachPanel/StartMachPanelVM.vb | 520 +++++++++++++++--- 3dPrintApp/TSFEditor/TFSEditorV.xaml | 7 + 3dPrintApp/TSFEditor/TFSEditorVM.vb | 31 +- 3dPrintApp/TopPanel/TopPanelVM.vb | 3 +- 14 files changed, 886 insertions(+), 166 deletions(-) diff --git a/3dPrintApp/Constants/Const3dPrint.vb b/3dPrintApp/Constants/Const3dPrint.vb index 34c2e65..a463b79 100644 --- a/3dPrintApp/Constants/Const3dPrint.vb +++ b/3dPrintApp/Constants/Const3dPrint.vb @@ -96,6 +96,8 @@ Public Const MAC_RIBSLEADOUTWIPEDIR = "RibsLeadOutWipeDir" Public Const MAC_MATERIALS = "Materials" + ' parametri StartMach + Public Const LAY_NEWSTART = "NewStart" Public Const FILE_PATH = "FilePath" diff --git a/3dPrintApp/Constants/ConstGen.vb b/3dPrintApp/Constants/ConstGen.vb index ffbf0cd..5463dfd 100644 --- a/3dPrintApp/Constants/ConstGen.vb +++ b/3dPrintApp/Constants/ConstGen.vb @@ -39,6 +39,7 @@ Public Module ConstGen ' MOdalita' di modifica Public Enum ModifyModes As Integer NULL = 0 + SELECT_ = 1 DISPOSITION = 2 REFERENCE = 3 STARTMACH = 4 diff --git a/3dPrintApp/ControllerInputPanel/ControllerInputPanelVM.vb b/3dPrintApp/ControllerInputPanel/ControllerInputPanelVM.vb index 4bc2a73..2441db9 100644 --- a/3dPrintApp/ControllerInputPanel/ControllerInputPanelVM.vb +++ b/3dPrintApp/ControllerInputPanel/ControllerInputPanelVM.vb @@ -223,6 +223,7 @@ Public Class ControllerInputPanelVM Friend Sub PrepareInputBox(sTitle As String, sLabel As String, sCheckLabel As String, bShowCombo As Boolean, bShowBtn As Boolean) + If Map.refTopPanelVM.SelPage = Pages.MODIFY AndAlso Map.refTopPanelVM.SelModifyMode.ModifyMode = ModifyModes.DISPOSITION Then Return Title = sTitle If sLabel <> "" Then Message = sLabel diff --git a/3dPrintApp/DispositionPanel/DispositionPanelV.xaml b/3dPrintApp/DispositionPanel/DispositionPanelV.xaml index 6726655..f126e04 100644 --- a/3dPrintApp/DispositionPanel/DispositionPanelV.xaml +++ b/3dPrintApp/DispositionPanel/DispositionPanelV.xaml @@ -20,6 +20,7 @@ + @@ -59,6 +60,12 @@ Margin="5,0,0,0" Style="{StaticResource LeftPanel_TextBox}"/> + + + @@ -54,48 +60,32 @@ - - - - - - @@ -183,6 +173,7 @@ + @@ -222,6 +213,12 @@ Margin="5,0,0,0" Style="{StaticResource LeftPanel_TextBox}"/> + +