From 00a338c202b319afda8dfa2eca976e506e4c3591 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Fri, 21 Mar 2025 19:21:02 +0100 Subject: [PATCH] Revert "Merge commit 'f1aae48a2b80f96ae94b59a69addd6cc6e48ee14'" This reverts commit 1f49d0936ee394d427807c3ea201dcb332220f22, reversing changes made to 236eeac038b0d2a253673ba2d5709f80ca70155b. --- .../BeamMachiningsWindowVM.vb | 26 +- CheckParamV.xaml | 82 + CheckParamV.xaml.vb | 53 +- ComboParamV.xaml | 91 +- ComboParamV.xaml.vb | 15 + Constants/ConstIni.vb | 104 +- Constants/ConstMachIni.vb | 280 ++ Constants/ConstMsg.vb | 58 + CurrentMachine.vb | 3 + EgtColorPicker/EgtColorPickerVM.vb | 1012 ------- EgtColorPicker/EgtHexagon.vb | 374 --- EgtCustomWindow.vb | 10 + EgtFloating/EgtFloatingManager.vb | 10 + EgtFloating/EgtFloatingTray.vb | 14 + EgtMainWindow.vb | 20 + EgtManageFileDialog/EgtManageFileDialogV.xaml | 430 --- .../EgtManageFileDialogV.xaml.vb | 140 - EgtManageFileDialog/EgtManageFileDialogVM.vb | 926 ------ EgtMessageBox/EgtMessageBoxV.xaml | 52 - EgtMessageBox/EgtMessageBoxV.xaml.vb | 107 - EgtMessageBox/EgtMessageBoxVM.vb | 232 -- EgtOpenFileDialog.xaml.vb | 8 +- EgtPanelWindow.vb | 3 + EgtScrollViewer.vb | 1 + EgtTextBox.xaml | 21 + EgtTextBox.xaml.vb | 6 + EgtTextBox2.vb | 17 + EgtWPFLib5.vbproj | 52 +- EgtWPFLib5Resources.xaml | 29 +- .../EstimationsDetailsWndV.xaml.vb | 4 +- .../EstimationsDetailsWndVM.vb | 9 +- InstrumentPanel/InstrumentPanelVM.vb | 14 +- MachGroupPanel/MachGroupPanelVM.vb | 18 +- .../NewMachGroupWnd/NewMachGroupWndV.xaml | 3 +- .../NewMachGroupWnd/NewMachGroupWndVM.vb | 9 +- MachinePanel/MachinePanelVM.vb | 9 +- MachiningDbWindow/BeamMillingParamPageV.xaml | 82 +- MachiningDbWindow/ChiselingParamPageV.xaml | 81 +- .../FiveAxisMachinigParamPageV.xaml | 81 +- MachiningDbWindow/GenMachiningParamPageV.xaml | 81 +- .../ImportExportMachiningWindowVM.vb | 29 +- MachiningDbWindow/MachiningDbWindowV.xaml | 73 + MachiningDbWindow/MachiningDbWindowVM.vb | 72 +- MachiningDbWindow/MachiningTreeView.vb | 1147 ++++---- MachiningDbWindow/MortisingParamPageV.xaml | 82 +- MachiningDbWindow/PocketingParamPageV.xaml | 82 +- .../Stone5DrillingParamPageV.xaml | 84 +- .../Stone5MillingParamPageV.xaml | 84 +- .../Stone5SawFinishingParamPageV.xaml | 84 +- .../Stone5SawRoughingParamPageV.xaml | 84 +- MachiningDbWindow/Stone5SawingParamPageV.xaml | 84 +- .../Stone5WaterjettingParamPageV.xaml | 84 +- .../StoneDrillingParamPageV.xaml | 82 +- MachiningDbWindow/StoneMillingParamPageV.xaml | 82 +- .../StoneSawFinishingParamPageV.xaml | 82 +- .../StoneSawRoughingParamPageV.xaml | 82 +- MachiningDbWindow/StoneSawingParamPageV.xaml | 82 +- .../SurfFinishingParamPageV.xaml | 74 + MachiningDbWindow/SurfRoughingParamPageV.xaml | 74 + MachiningDbWindow/WaterjettingParamPageV.xaml | 82 +- MachiningDbWindow/WoodDrillingParamPageV.xaml | 82 +- MachiningDbWindow/WoodMillingParamPageV.xaml | 82 +- MachiningDbWindow/WoodSawingParamPageV.xaml | 82 +- Mapi/MAPI.vb | 16 +- NameDialog/NameDialogV.xaml.vb | 7 +- NameDialog/NameDialogVM.vb | 15 +- OptionPanel/EstimationsVM.vb | 16 +- OptionPanel/MachineAxis.vb | 8 +- OptionPanel/SimulationVM.vb | 47 +- Resources/EgtDialog/Folder.png | Bin 1292 -> 0 bytes Resources/EgtDialog/New.png | Bin 374 -> 0 bytes Resources/EgtDialog/Restore.png | Bin 254 -> 0 bytes Resources/EgtDialog/Root.png | Bin 753 -> 0 bytes Resources/EgtMessageBox/Asterisk.png | Bin 605 -> 0 bytes Resources/EgtMessageBox/Error.png | Bin 3263 -> 0 bytes Resources/EgtMessageBox/Exclamation.png | Bin 813 -> 0 bytes Resources/EgtMessageBox/Hand.png | Bin 616 -> 0 bytes Resources/EgtMessageBox/Information.png | Bin 2689 -> 0 bytes Resources/EgtMessageBox/Question.png | Bin 1057 -> 0 bytes Resources/EgtMessageBox/Warning.png | Bin 2223 -> 0 bytes SaveFileDialog/SaveFileDialogV.xaml | 5 + SaveFileDialog/SaveFileDialogV.xaml.vb | 5 +- SaveFileDialog/SaveFileDialogVM.vb | 30 +- .../SaveFileDialogWithListV.xaml.vb | 31 +- .../SaveFileDialogWithListVM.vb | 34 +- SceneHost/SceneHostV.xaml.vb | 7 +- SceneHost/SceneHostVM.vb | 178 ++ SetUpWindow/SetUpWindowV.xaml | 2 + SetUpWindow/SetUpWindowVM.vb | 190 +- ShowPanel/ShowPanelVM.vb | 16 +- StatusBar/StatusBarVM.vb | 32 +- StringParamV.xaml | 93 + StringParamV.xaml.vb | 52 +- StringParamWithButtonV.xaml | 97 +- StringParamWithButtonV.xaml.vb | 34 +- Themes/Generic.xaml | 93 +- ToolDbWindow/BeamMillParamPageV.xaml | 46 +- ToolDbWindow/ChiselParamPageV.xaml | 49 +- ToolDbWindow/ImportExportToolWindowVM.vb | 30 +- ToolDbWindow/MortiseParamPageV.xaml | 55 +- ToolDbWindow/StoneDrillParamPageV.xaml | 49 +- ToolDbWindow/StoneMillParamPageV.xaml | 49 +- ToolDbWindow/StoneSawParamPageV.xaml | 49 +- ToolDbWindow/ToolDbWindowV.xaml | 27 + ToolDbWindow/ToolDbWindowVM.vb | 136 +- ToolDbWindow/ToolTreeView.vb | 754 ++--- ToolDbWindow/WaterjetParamPageV.xaml | 49 +- ToolDbWindow/WoodDrillParamPageV.xaml | 49 +- ToolDbWindow/WoodMillParamPageV.xaml | 49 +- ToolDbWindow/WoodSawParamPageV.xaml | 49 +- Utility/InheritableTreeViewItem.vb | 12 +- Utility/IniFile.vb | 2 + Utility/MachineModel.vb | 5 +- Utility/MachineUtility.vb | 77 +- Utility/MsgConversion.vb | 3 +- Utility/TMDbParamVisibility.vb | 2520 ++++++++--------- Utility/Utility.vb | 9 + ViewPanel/ViewPanelVM.vb | 26 +- WaterjetDbWindow/WaterjetDbWindowV.xaml | 21 + WaterjetDbWindow/WaterjetDbWindowVM.vb | 126 +- 120 files changed, 6714 insertions(+), 5977 deletions(-) delete mode 100644 EgtColorPicker/EgtColorPickerVM.vb delete mode 100644 EgtColorPicker/EgtHexagon.vb delete mode 100644 EgtManageFileDialog/EgtManageFileDialogV.xaml delete mode 100644 EgtManageFileDialog/EgtManageFileDialogV.xaml.vb delete mode 100644 EgtManageFileDialog/EgtManageFileDialogVM.vb delete mode 100644 EgtMessageBox/EgtMessageBoxV.xaml delete mode 100644 EgtMessageBox/EgtMessageBoxV.xaml.vb delete mode 100644 EgtMessageBox/EgtMessageBoxVM.vb delete mode 100644 Resources/EgtDialog/Folder.png delete mode 100644 Resources/EgtDialog/New.png delete mode 100644 Resources/EgtDialog/Restore.png delete mode 100644 Resources/EgtDialog/Root.png delete mode 100644 Resources/EgtMessageBox/Asterisk.png delete mode 100644 Resources/EgtMessageBox/Error.png delete mode 100644 Resources/EgtMessageBox/Exclamation.png delete mode 100644 Resources/EgtMessageBox/Hand.png delete mode 100644 Resources/EgtMessageBox/Information.png delete mode 100644 Resources/EgtMessageBox/Question.png delete mode 100644 Resources/EgtMessageBox/Warning.png diff --git a/BeamMachiningsWindow/BeamMachiningsWindowVM.vb b/BeamMachiningsWindow/BeamMachiningsWindowVM.vb index a737575..dd9126d 100644 --- a/BeamMachiningsWindow/BeamMachiningsWindowVM.vb +++ b/BeamMachiningsWindow/BeamMachiningsWindowVM.vb @@ -45,8 +45,7 @@ Public Class BeamMachiningsWindowVM ' se modificata, chiedo se salvare If TableModified Then ' Salvare le modifiche apportate? - Salva - 'Select Case MessageBox.Show(EgtMsg(9007), EgtMsg(9006), MessageBoxButton.YesNo, MessageBoxImage.Question) - Select Case EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(9007), EgtMsg(9006), MessageBoxButton.YesNo, MessageBoxImage.Question) ' Salvare le modifiche apportate? Salva + Select Case MessageBox.Show(EgtMsg(9007), EgtMsg(9006), MessageBoxButton.YesNo, MessageBoxImage.Question) Case MessageBoxResult.Yes Save() Case MessageBoxResult.No @@ -57,7 +56,7 @@ Public Class BeamMachiningsWindowVM LoadMachiningList() LoadTypeList() ReadTableFile() - NotifyPropertyChanged(NameOf(SelMachining)) + NotifyPropertyChanged("SelMachining") End Set End Property Private Sub SetSelMachining(value As String) @@ -65,7 +64,7 @@ Public Class BeamMachiningsWindowVM LoadMachiningList() LoadTypeList() ReadTableFile() - NotifyPropertyChanged(NameOf(SelMachining)) + NotifyPropertyChanged("SelMachining") End Sub Private m_TableRowList As ObservableCollection(Of GridLine) @@ -104,37 +103,37 @@ Public Class BeamMachiningsWindowVM Public ReadOnly Property OnHdr As String Get - Return EgtMsg(9001) ' On + Return EgtMsg(9001) 'On End Get End Property Public ReadOnly Property NameHdr As String Get - Return EgtMsg(9002) ' Nome + Return EgtMsg(9002) 'Nome End Get End Property Public ReadOnly Property TypeHdr As String Get - Return EgtMsg(9003) ' Tipo + Return EgtMsg(9003) 'Tipo End Get End Property Public ReadOnly Property AddRowMsg As String Get - Return EgtMsg(9004) ' Aggiungi + Return EgtMsg(9004) 'Aggiungi End Get End Property Public ReadOnly Property DeleteRowMsg As String Get - Return EgtMsg(9005) ' Elimina + Return EgtMsg(9005) 'Elimina End Get End Property Public ReadOnly Property SaveMsg As String Get - Return EgtMsg(9006) ' Salva + Return EgtMsg(9006) 'Salva End Get End Property @@ -170,7 +169,7 @@ Public Class BeamMachiningsWindowVM If m_MachiningList.Count > 0 Then SetSelMachining(m_MachiningList(0)) End If - NotifyPropertyChanged(NameOf(MachiningList)) + NotifyPropertyChanged("MachiningList") End Sub #End Region ' CONSTRUCTOR @@ -254,7 +253,7 @@ Public Class BeamMachiningsWindowVM End If End If Next - NotifyPropertyChanged(NameOf(TableRowList)) + NotifyPropertyChanged("TableRowList") Return True End Function @@ -454,8 +453,7 @@ Public Class BeamMachiningsWindowVM ' se modificata, chiedo se salvare If TableModified Then ' Salvare le modifiche apportate? - Salva - 'Select Case MessageBox.Show(EgtMsg(9007), EgtMsg(9006), MessageBoxButton.YesNo, MessageBoxImage.Question) - Select Case EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(9007), EgtMsg(9006), MessageBoxButton.YesNo, MessageBoxImage.Question) ' Salvare le modifiche apportate? Salva + Select Case MessageBox.Show(EgtMsg(9007), EgtMsg(9006), MessageBoxButton.YesNo, MessageBoxImage.Question) Case MessageBoxResult.Yes Save() Case MessageBoxResult.No diff --git a/CheckParamV.xaml b/CheckParamV.xaml index c205670..4efbbc0 100644 --- a/CheckParamV.xaml +++ b/CheckParamV.xaml @@ -4,6 +4,7 @@ xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5" xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"> + @@ -61,10 +62,87 @@ + + + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 + 26 + 27 + 28 + 29 + 30 + 31 + 32 + 33 + 34 + 35 + 36 + 37 + 38 + 39 + 40 + 41 + 42 + 43 + 44 + 45 + 46 + 47 + 49 + 50 + 51 + 52 + 53 + 54 + 55 + 56 + 57 + 58 + 59 + 60 + 61 + 62 + 63 + 64 + 65 + 66 + 67 + 68 + 69 + 70 + 71 @@ -88,6 +166,10 @@ Path=ParamChBx, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/> + diff --git a/CheckParamV.xaml.vb b/CheckParamV.xaml.vb index 011e3e1..89e53ba 100644 --- a/CheckParamV.xaml.vb +++ b/CheckParamV.xaml.vb @@ -1,4 +1,6 @@ -Imports System.ComponentModel +Imports System.Globalization +Imports System.Windows.Controls.Primitives +Imports System.ComponentModel Public Class CheckParamV @@ -40,6 +42,20 @@ Public Class CheckParamV End Set End Property + ' ------------------------------------------------------------------- Colore TextBlock ------------------------------------------------------------------- + 'Public Shared ReadOnly ForegroundParamTxBlProperty As DependencyProperty = + ' DependencyProperty.Register("ForegroundParamTxBl", + ' GetType(Windows.Media.Brush), + ' GetType(CheckParamV), + ' New PropertyMetadata(Windows.Media.Brushes.Black)) + 'Public Property ForegroundParamTxBl() As Windows.Media.Brush + ' Get + ' Return DirectCast(GetValue(ForegroundParamTxBlProperty), Windows.Media.Brush) + ' End Get + ' Set(ByVal value As Windows.Media.Brush) + ' SetValue(ForegroundParamTxBlProperty, value) + ' End Set + 'End Property Public Shared ReadOnly ForegroundChxTxBlProperty As DependencyProperty = DependencyProperty.RegisterAttached( NameOf(ForegroundChxTxBl), GetType(Brush), @@ -63,6 +79,41 @@ Public Class CheckParamV SetValue(ForegroundChxTxBlProperty, value) End Set End Property + ' --------------------------------------------------------------------------------------------------------------------------------------------------------- + + 'Private Shared Sub OnParamTxBxChangedCallback(sender As DependencyObject, e As DependencyPropertyChangedEventArgs) + ' Dim StringParamV As StringParamV = DirectCast(sender, StringParamV) + ' If Not IsNothing(sender) Then + ' 'StringParamV.ParamValue.Text = CStr(e.NewValue) + ' StringParamV.ParamTxBx = CStr(e.NewValue) + ' StringParamV.NotifyPropertyChanged("ParamTxBx") + ' End If + 'End Sub + + 'Public Property ParamErrorMsg() As String + ' Get + ' Return CStr(GetValue(ParamErrorMsgProperty)) + ' End Get + ' Set(ByVal value As String) + ' SetValue(ParamErrorMsgProperty, value) + ' End Set + 'End Property + + 'Public Shared ReadOnly ParamErrorMsgProperty As DependencyProperty = + ' DependencyProperty.Register("ParamErrorMsg", GetType(String), GetType(CheckParamV)) + + 'Public Property ParamVisibility() As Visibility + ' Get + ' Return CType(GetValue(ParamVisibilityProperty), Visibility) + ' End Get + ' Set(ByVal value As Visibility) + ' SetValue(ParamVisibilityProperty, value) + ' End Set + 'End Property + + 'Friend Sub ParamValue_TextChanged(sender As Object, e As TextChangedEventArgs) Handles ParamValue.TextChanged + ' ParamTxBx = ParamValue.Text + 'End Sub Public Shared ReadOnly ParamVisibilityProperty As DependencyProperty = DependencyProperty.Register("ParamVisibility", GetType(Visibility), GetType(CheckParamV)) diff --git a/ComboParamV.xaml b/ComboParamV.xaml index b23c995..b5cddea 100644 --- a/ComboParamV.xaml +++ b/ComboParamV.xaml @@ -1,8 +1,10 @@  + @@ -31,6 +33,7 @@ + F1 M 0,0 L 2.667,2.66665 L 5.3334,0 L 5.3334,-1.78168 L 2.6667,0.88501 L0,-1.78168 L0,0 Z - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -