From a39cfeb4dd45892180ee4f920f278aaad471dd54 Mon Sep 17 00:00:00 2001 From: Nicola Pievani Date: Fri, 22 Sep 2023 19:15:31 +0200 Subject: [PATCH] Gestione pagina DB waterjet --- DxfImportWindow/DxfImportWindowV.xaml | 171 ++++++----- DxfImportWindow/DxfImportWindowVM.vb | 4 +- MachinePanel/MyMachinePanelVM.vb | 3 +- My Project/AssemblyInfo.vb | 4 +- MyMachGroupPanel/MyMachGroupPanelV.xaml | 109 +++++++ MyMachGroupPanel/MyMachGroupPanelV.xaml.vb | 3 + MyWaterjetDbWindow/MyWaterjetDbWindowV.xaml | 278 ++++++++++++++++++ .../MyWaterjetDbWindowV.xaml.vb | 20 ++ OmagOFFICE.vbproj | 17 ++ OptionPanel/MachiningTab/SplitModeVM.vb | 3 + Project/ProjectV.xaml | 5 +- Resources/TopCommandBar/Modify.png | Bin 0 -> 1349 bytes Utility/OmagOFFICEDictionary.xaml | 73 ++++- 13 files changed, 594 insertions(+), 96 deletions(-) create mode 100644 MyMachGroupPanel/MyMachGroupPanelV.xaml create mode 100644 MyMachGroupPanel/MyMachGroupPanelV.xaml.vb create mode 100644 MyWaterjetDbWindow/MyWaterjetDbWindowV.xaml create mode 100644 MyWaterjetDbWindow/MyWaterjetDbWindowV.xaml.vb create mode 100644 Resources/TopCommandBar/Modify.png diff --git a/DxfImportWindow/DxfImportWindowV.xaml b/DxfImportWindow/DxfImportWindowV.xaml index 5ae581e..21a50a7 100644 --- a/DxfImportWindow/DxfImportWindowV.xaml +++ b/DxfImportWindow/DxfImportWindowV.xaml @@ -8,12 +8,12 @@ ShowInTaskbar="False" Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}" WindowStartupLocation="CenterOwner"> - + - - + @@ -40,145 +40,154 @@ - - - - + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MyWaterjetDbWindow/MyWaterjetDbWindowV.xaml.vb b/MyWaterjetDbWindow/MyWaterjetDbWindowV.xaml.vb new file mode 100644 index 0000000..6c36591 --- /dev/null +++ b/MyWaterjetDbWindow/MyWaterjetDbWindowV.xaml.vb @@ -0,0 +1,20 @@ +Imports EgtWPFLib5 + +Public Class MyWaterjetDbWindowV + + Private WithEvents m_WaterjetDbWindowVM As WaterjetDbWindowVM + + Sub New(Owner As Window, WaterjetDbWindowVM As WaterjetDbWindowVM) + MyBase.New(Owner) + ' This call is required by the designer. + InitializeComponent() + Me.DataContext = WaterjetDbWindowVM + ' Assegno al riferimento locale al VM il VM preso dal DataContext + m_WaterjetDbWindowVM = WaterjetDbWindowVM + End Sub + + Private Sub CloseWindow(bDialogResult As Boolean) Handles m_WaterjetDbWindowVM.m_CloseWindow + Me.DialogResult = bDialogResult + End Sub + +End Class diff --git a/OmagOFFICE.vbproj b/OmagOFFICE.vbproj index e78f9d7..e750610 100644 --- a/OmagOFFICE.vbproj +++ b/OmagOFFICE.vbproj @@ -238,6 +238,9 @@ + + MyMachGroupPanelV.xaml + MachinePanelV.xaml @@ -261,6 +264,9 @@ MyToolDbWindowV.xaml + + MyWaterjetDbWindowV.xaml + MachiningTabV.xaml @@ -431,6 +437,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + MSBuild:Compile Designer @@ -459,6 +469,10 @@ MSBuild:Compile Designer + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -906,6 +920,9 @@ + + + IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\OmagOFFICE\OmagOFFICER32.exe diff --git a/OptionPanel/MachiningTab/SplitModeVM.vb b/OptionPanel/MachiningTab/SplitModeVM.vb index 5ee9a9e..d4b1771 100644 --- a/OptionPanel/MachiningTab/SplitModeVM.vb +++ b/OptionPanel/MachiningTab/SplitModeVM.vb @@ -1984,6 +1984,9 @@ Public Class SplitModeVM ModifStartWindow.DataContext = ModifStartWindowVM ModifStartWindow.Owner = Application.Current.MainWindow ModifStartWindowVM.SetVal(dOrigUsal) + ' Il posizionamento è forzato nel codice xaml: WindowStartupLocation="CenterOwner" + ModifStartWindow.Left = 190 + ModifStartWindow.Top = 600 If Not ModifStartWindow.ShowDialog() Then Return ' Modifica della lavorazione dUsal = ModifStartWindowVM.GetVal() diff --git a/Project/ProjectV.xaml b/Project/ProjectV.xaml index 06f8444..25e6a97 100644 --- a/Project/ProjectV.xaml +++ b/Project/ProjectV.xaml @@ -23,14 +23,15 @@ - + diff --git a/Resources/TopCommandBar/Modify.png b/Resources/TopCommandBar/Modify.png new file mode 100644 index 0000000000000000000000000000000000000000..597d9934a5f978d03fdc812ba8c7f4d74031c7ab GIT binary patch literal 1349 zcmV-L1-kl)P)EX>4Tx04R}tkvmAkKpe)urb>O(2UtYJAwzYtAS&W0RV;#q(pG5I!Q|2xG-*gu zTpR`0f`gC6s)LKOt`4q(Aou`rb#YR3krMxx6k5c3aNLjY?)$j=4iKtErkZUNfT~$W zJQ5aD=~dD9icSoo7v1QWn5jn-i%GN`U-$6v^)AG-TA%xK^e7pV0UnWfj_HO)yg@v( zY3ZEzi32PzDa7Z*;|5)j_>t?f%Ws@>4huXpU?k)7!~tS4*TixYv%H}aPZI|fRik_% z<+8$gi?doRv-&;x3;h{wCBb!?BZy!LQN$oZMi~VZVIf4TMv93z?T1_VhaG>6Tr#-| zVB}ap2`VJV5B>+gyEU^@lWvkf479)4_QxpT+XZSB+x|Yb?b-?8eFmFm(6~m30ATPXGV_24YJ`L;!>UXaJ9f=BWe#000SaNLh0L z01FcU01FcV0GgZ_00007bV*G`2j>YE4jCeb2d<3ni8G zKajBM)O4d32;?#EOTXLIHNK&|{X*?e>YCqX%~ZDf-L4+1o1IpjXD-DKZ~nS|OFpaB zbfd}db_KGFi$oKfX3bRU0k5VTSbrXt3P3d<9*9H} z;Z>fRh31fBgRfIDpdl})tUQfX`wq1%?EKKU^7aefx_K3s0aC*wC}mDn(+$4+^>X0E zl~_}-t@&6an%HsTO6;uFJPy0Udgk}oo2So)0MuYxa{%axL=z8Jd1}rkyEgRYovHt# zrJv5-e)Qa}BRgAGd{jAih8k>Z#_x93=5nuXPJPx;8BeCt>yMth^(yO_rW+?Gj+02I zQTCO}n;ye)?e|nKIi{O*h6J6;inhzd+?~pi9COTgwNi0JAHmF}q^g z`1YnO5O8oc-8H~pKr4`x@I#@YUfzg5xt@47=$hD(9?g8Lwk)qQfu;caCEa!S)M3&L z@F#x*J3;mr6e`)Zq30%id2{mPqEm&vBWWDKAxUU4UezE2Oa(ak9Mt1L(9TRv1n%^^ z6=!Rs5|JFP!~2!-t}}G1OrXXEY!iqPCqIp~*ts`d~7LY%X8!p)L}XRDcf2;|7aRj~4rdyiW3{&qwvWp|CMy%%SfsOJ*aK zEL#fe_+-J0kWXCSh|)_qp$L3;%eP+~()84jrW@g6f4Vqs!&>^kP>ACQ@hC2+?gcs! z8JY7WHk7YiaP8Y={n8_t-v{is3Uv{JE)0;X0d7ME#Be^dZ$S&}|7KZx>BmG#B?12e70f#(7+AG=00000NkvXX Hu0mjf_@ILg literal 0 HcmV?d00001 diff --git a/Utility/OmagOFFICEDictionary.xaml b/Utility/OmagOFFICEDictionary.xaml index 927a549..97483d1 100644 --- a/Utility/OmagOFFICEDictionary.xaml +++ b/Utility/OmagOFFICEDictionary.xaml @@ -28,6 +28,7 @@ + @@ -220,6 +221,33 @@ + + + + + - + - + - - + +