From a4f75be46ed6ac9ed6008db2d58475b2d2efc54c Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 27 Jan 2020 14:49:11 +0000 Subject: [PATCH] =?UTF-8?q?OmagOFFICE=202.2a4=20:=20-=20drag=20diretto=20d?= =?UTF-8?q?el=20pezzo=20da=20parcheggio=20a=20lastra=20-=20archi=20lavorat?= =?UTF-8?q?i=20all'esterno=20con=20possibilit=C3=A0=20di=20inclinazione=20?= =?UTF-8?q?-=20possibilit=C3=A0=20di=20allungare=20e=20accorciare=20gli=20?= =?UTF-8?q?estremi=20dei=20tagli=20di=20una=20quantit=C3=A0=20a=20piacere?= =?UTF-8?q?=20-=20possibilit=C3=A0=20di=20bloccare=20la=20rotazione=20dei?= =?UTF-8?q?=20pezzi=20-=20possibilit=C3=A0=20di=20nesting=20automatico.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AboutBoxWindow/AboutBoxV.xaml | 8 +- AboutBoxWindow/AboutBoxV.xaml.vb | 4 + Constants/ConstGen.vb | 1 + Constants/ConstIni.vb | 2 + EgtStoneLib/ConstMach.vb | 2 + EgtStoneLib/ConstMachIni.vb | 1 + EgtStoneLib/CurrentMachine.vb | 23 +- EgtStoneLib/EstCalc.vb | 115 +++--- EgtStoneLib/SplitAuto.vb | 20 +- MachOptionWindow/MachOptionWindowV.xaml | 12 +- MachOptionWindow/MachOptionWindowVM.vb | 14 + MainWindow/MainWindowM.vb | 16 +- My Project/AssemblyInfo.vb | 6 +- OmagOFFICE.vbproj | 25 +- .../MachiningTab/ModifStartEndCutWindowV.xaml | 52 +++ .../ModifStartEndCutWindowV.xaml.vb | 6 + .../MachiningTab/ModifStartEndCutWindowVM.vb | 50 +++ .../MachiningTab/ModifStartEndWjWindowV.xaml | 74 ++++ .../ModifStartEndWjWindowV.xaml.vb | 3 + .../MachiningTab/ModifStartEndWjWindowVM.vb | 60 +++ OptionPanel/MachiningTab/SplitModeV.xaml | 12 +- OptionPanel/MachiningTab/SplitModeVM.vb | 124 ++++++ OptionPanel/NestingTab/NestingTabV.xaml | 14 +- OptionPanel/NestingTab/NestingTabVM.vb | 372 ++++++++++++++---- Resources/AboutBoxImage.png | Bin 0 -> 4169 bytes Resources/NestingTab/PartRotOff.png | Bin 0 -> 1315 bytes Resources/NestingTab/PartRotOn.png | Bin 0 -> 826 bytes SideEntityControl/SideEntityControlVM.vb | 157 +++++--- 28 files changed, 963 insertions(+), 210 deletions(-) create mode 100644 OptionPanel/MachiningTab/ModifStartEndCutWindowV.xaml create mode 100644 OptionPanel/MachiningTab/ModifStartEndCutWindowV.xaml.vb create mode 100644 OptionPanel/MachiningTab/ModifStartEndCutWindowVM.vb create mode 100644 OptionPanel/MachiningTab/ModifStartEndWjWindowV.xaml create mode 100644 OptionPanel/MachiningTab/ModifStartEndWjWindowV.xaml.vb create mode 100644 OptionPanel/MachiningTab/ModifStartEndWjWindowVM.vb create mode 100644 Resources/AboutBoxImage.png create mode 100644 Resources/NestingTab/PartRotOff.png create mode 100644 Resources/NestingTab/PartRotOn.png diff --git a/AboutBoxWindow/AboutBoxV.xaml b/AboutBoxWindow/AboutBoxV.xaml index 2a93023..778a96d 100644 --- a/AboutBoxWindow/AboutBoxV.xaml +++ b/AboutBoxWindow/AboutBoxV.xaml @@ -1,7 +1,7 @@  @@ -18,7 +18,7 @@ - + @@ -31,7 +31,7 @@ - + + + + + + + + diff --git a/OptionPanel/MachiningTab/ModifStartEndCutWindowV.xaml.vb b/OptionPanel/MachiningTab/ModifStartEndCutWindowV.xaml.vb new file mode 100644 index 0000000..bbce509 --- /dev/null +++ b/OptionPanel/MachiningTab/ModifStartEndCutWindowV.xaml.vb @@ -0,0 +1,6 @@ +Public Class ModifStartEndCutWindowV + + Private Sub OkBtn_Click(sender As Object, e As RoutedEventArgs) Handles OkBtn.Click + DialogResult = True + End Sub +End Class diff --git a/OptionPanel/MachiningTab/ModifStartEndCutWindowVM.vb b/OptionPanel/MachiningTab/ModifStartEndCutWindowVM.vb new file mode 100644 index 0000000..23fd246 --- /dev/null +++ b/OptionPanel/MachiningTab/ModifStartEndCutWindowVM.vb @@ -0,0 +1,50 @@ +Imports System.IO +Imports EgtUILib + +Public Class ModifStartEndCutWindowVM + + Public ReadOnly Property ValueMsg As String + Get + Return EgtMsg(MSG_SPLITPAGEUC + 35) + End Get + End Property + + Public ReadOnly Property OkMsg As String + Get + Return EgtMsg(91651) 'Ok + End Get + End Property + + Public ReadOnly Property ExitMsg As String + Get + Return EgtMsg(91652) 'Annulla + End Get + End Property + + Private m_sValue As String + Public Property sValue As String + Get + Return m_sValue + End Get + Set(value As String) + m_sValue = value + End Set + End Property + + Sub New() + + End Sub + + Friend Function SetVal(dVal As Double) As Boolean + sValue = DoubleToString(dVal, 3) + Return True + End Function + + Friend Function GetVal() As Double + Dim dVal As Double = 0 + StringToDouble(sValue, dVal) + Return dVal + End Function + +End Class + diff --git a/OptionPanel/MachiningTab/ModifStartEndWjWindowV.xaml b/OptionPanel/MachiningTab/ModifStartEndWjWindowV.xaml new file mode 100644 index 0000000..a46a04f --- /dev/null +++ b/OptionPanel/MachiningTab/ModifStartEndWjWindowV.xaml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/OptionPanel/MachiningTab/ModifStartEndWjWindowV.xaml.vb b/OptionPanel/MachiningTab/ModifStartEndWjWindowV.xaml.vb new file mode 100644 index 0000000..9deb2aa --- /dev/null +++ b/OptionPanel/MachiningTab/ModifStartEndWjWindowV.xaml.vb @@ -0,0 +1,3 @@ +Public Class ModifStartEndWjWindowV + +End Class diff --git a/OptionPanel/MachiningTab/ModifStartEndWjWindowVM.vb b/OptionPanel/MachiningTab/ModifStartEndWjWindowVM.vb new file mode 100644 index 0000000..4b9001e --- /dev/null +++ b/OptionPanel/MachiningTab/ModifStartEndWjWindowVM.vb @@ -0,0 +1,60 @@ +Imports System.IO +Imports EgtUILib + +Public Class ModifStartEndWjWindowVM + + Public ReadOnly Property ValueMsg As String + Get + Return EgtMsg(MSG_SPLITPAGEUC + 35) + End Get + End Property + + Public ReadOnly Property OkMsg As String + Get + Return EgtMsg(91651) 'Ok + End Get + End Property + + Public ReadOnly Property ExitMsg As String + Get + Return EgtMsg(91652) 'Annulla + End Get + End Property + + Private m_sValue As String + Public Property sValue As String + Get + Return m_sValue + End Get + Set(value As String) + m_sValue = value + End Set + End Property + + Sub New() + + End Sub + + Friend Function SetVal(dVal As Double) As Boolean + sValue = DoubleToString(dVal, 3) + Return True + End Function + + Friend Function GetVal() As Double + Dim dVal As Double = 0 + StringToDouble(sValue, dVal) + Return dVal + End Function + + 'Private Sub OkBtn_Click(sender As Object, e As RoutedEventArgs) Handles OkBtn.Click + ' m_sValue = ValueTxBx.Text + ' DialogResult = True + 'End Sub + + 'Private Sub ExitBtn_Click(sender As Object, e As RoutedEventArgs) Handles ExitBtn.Click + ' m_sValue = "" + ' DialogResult = False + 'End Sub + +End Class + diff --git a/OptionPanel/MachiningTab/SplitModeV.xaml b/OptionPanel/MachiningTab/SplitModeV.xaml index aa6f4b1..50232d5 100644 --- a/OptionPanel/MachiningTab/SplitModeV.xaml +++ b/OptionPanel/MachiningTab/SplitModeV.xaml @@ -151,7 +151,17 @@ - +