From 5142d2a2e96e5d7a5460809e9fa07752cbe4b3aa Mon Sep 17 00:00:00 2001 From: Demetrio Cassarino Date: Wed, 6 Mar 2024 16:14:10 +0100 Subject: [PATCH] .aggiunto combo aggiunti nota, pulizia codice --- AboutBoxWindow/AboutBoxView.xaml | 18 +- DrawPanel/DrawPanelV.xaml | 262 +++++++++--------- EgtCAM5.vbproj | 3 + .../EstimationsDetailsWndV.xaml | 22 +- ExecutePanel/ExecutePanelV.xaml | 2 +- GridPanel/GridPanelV.xaml | 4 +- InstrumentPanel/InstrumentPanelV.xaml | 22 +- MachOptionsWindow/MachOptionV.xaml | 26 +- MachinePanel/MachinePanelV.xaml | 22 +- MachiningDbWindow/MyMachiningDbV.xaml | 134 ++++----- MainWindow/MainWindowV.xaml | 24 +- OptionPanel/DrawOptionPanelV.xaml | 8 +- .../EstimationsExpanderV.xaml | 10 +- .../BeamMillingParameterExpanderV.xaml | 91 ++++-- .../BeamMillingParameterExpanderV.xaml.vb | 3 - .../GenMachiningParameterExpanderV.xaml | 93 +++++-- .../GenMachiningParameterExpanderV.xaml.vb | 4 - .../MortisingParameterExpanderV.xaml | 80 ++++++ .../MortisingParameterExpanderV.xaml.vb | 1 - .../PocketingParameterExpanderV.xaml | 93 +++++-- .../PocketingParameterExpanderV.xaml.vb | 4 - .../StoneSawingParameterExpanderV.xaml | 93 +++++-- .../StoneSawingParameterExpanderV.xaml.vb | 4 - .../OperationParametersExpanderV.xaml | 6 +- OptionPanel/MachiningOptionPanelV.xaml | 10 +- OptionsWindow/MachineBox.xaml | 14 +- OptionsWindow/OptionWindowV.xaml | 210 +++++++------- PopUpGridPanel/PopUpGridPanelV.xaml | 4 +- PopUpViewPanel/PopUpViewPanelV.xaml | 4 +- Resources/Note/-.png | Bin 0 -> 2082 bytes SelMachGroupWnd/SelMachGroupWndV.xaml | 18 +- SetUpDb/SetUpDbV.xaml | 32 +-- ShowPanel/ShowPanelV.xaml | 4 +- Special-Doors/DoorPanelV.xaml | 6 +- Special-Doors/MTableDbV.xaml | 206 +++++++------- Special-GunStock/GunStockPanelV.xaml | 16 +- Special-GunStock/GunStockWndV.xaml | 38 +-- StatusBar/StatusBarV.xaml | 18 +- TopCommandBar/TopCommandBarV.xaml | 10 +- TopTray/TopTrayV.xaml | 22 +- ViewPanel/ViewPanelV.xaml | 4 +- 41 files changed, 939 insertions(+), 706 deletions(-) create mode 100644 Resources/Note/-.png diff --git a/AboutBoxWindow/AboutBoxView.xaml b/AboutBoxWindow/AboutBoxView.xaml index cf409be..19d0888 100644 --- a/AboutBoxWindow/AboutBoxView.xaml +++ b/AboutBoxWindow/AboutBoxView.xaml @@ -1,8 +1,8 @@  + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + Title="AboutBox" Height="400" Width="360" WindowStyle="None" ResizeMode="NoResize" + ShowInTaskbar="False" WindowStartupLocation="CenterOwner"> @@ -35,15 +35,15 @@ + VerticalAlignment="Center" FontSize="18" /> + VerticalAlignment="Center" FontSize="18"/> + VerticalAlignment="Center" FontSize="12" /> + VerticalAlignment="Stretch" FontSize="12" IsReadOnly="True" TextWrapping="Wrap"/> - + @@ -93,88 +93,88 @@ @@ -185,120 +185,120 @@ - - + + + @@ -309,8 +309,8 @@ diff --git a/EgtCAM5.vbproj b/EgtCAM5.vbproj index 3e6c49c..00c1bd3 100644 --- a/EgtCAM5.vbproj +++ b/EgtCAM5.vbproj @@ -1005,6 +1005,9 @@ + + + IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\EgtCAM5\EgtCAM5R32.exe diff --git a/EstimationsDetailsWnd/EstimationsDetailsWndV.xaml b/EstimationsDetailsWnd/EstimationsDetailsWndV.xaml index 833abd1..78f9006 100644 --- a/EstimationsDetailsWnd/EstimationsDetailsWndV.xaml +++ b/EstimationsDetailsWnd/EstimationsDetailsWndV.xaml @@ -1,14 +1,14 @@  - + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5" + Title="{Binding TitleMsg}" + Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}" + WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="32" + Width="300" Height="300" + IsResizable="True" + IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"> + - + diff --git a/ExecutePanel/ExecutePanelV.xaml b/ExecutePanel/ExecutePanelV.xaml index d914077..c41b52b 100644 --- a/ExecutePanel/ExecutePanelV.xaml +++ b/ExecutePanel/ExecutePanelV.xaml @@ -6,7 +6,7 @@ - + diff --git a/MachiningDbWindow/MyMachiningDbV.xaml b/MachiningDbWindow/MyMachiningDbV.xaml index 1607487..8d2ee31 100644 --- a/MachiningDbWindow/MyMachiningDbV.xaml +++ b/MachiningDbWindow/MyMachiningDbV.xaml @@ -1,24 +1,24 @@  - + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:sys="clr-namespace:System;assembly=mscorlib" + xmlns:interactivity="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" + xmlns:local="clr-namespace:EgtCAM5" + xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5" + Title="{Binding Title}" Icon="/Resources/EgtCAM5.ico" + TitleBarBrush="{StaticResource EgaltechBlue1}" + BorderBrush="{StaticResource EgaltechBlue1}" + WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False" + IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False" + CloseCommand="{Binding CloseMachiningsDbCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" + CloseCommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"> + + CommandParameter="{Binding Path=SelectedItem,ElementName=MachiningsTreeView}"/> - + 0 @@ -89,71 +89,71 @@ - - - - - + + + + + - - + + - - - - - + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + diff --git a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/BeamMillingParameterExpanderV.xaml.vb b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/BeamMillingParameterExpanderV.xaml.vb index c504ccf..887b69e 100644 --- a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/BeamMillingParameterExpanderV.xaml.vb +++ b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/BeamMillingParameterExpanderV.xaml.vb @@ -81,7 +81,4 @@ Public Class BeamMillingParameterExpanderV Return TryCast(target, T) End Function - Private Sub TextBox_TextChanged(sender As Object, e As TextChangedEventArgs) - UpdateNoteButton.IsEnabled = True - End Sub End Class diff --git a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/GenMachiningParameterExpanderV.xaml b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/GenMachiningParameterExpanderV.xaml index 7c87379..2344dee 100644 --- a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/GenMachiningParameterExpanderV.xaml +++ b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/GenMachiningParameterExpanderV.xaml @@ -195,42 +195,83 @@ - + + + + + + - - - - - + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + diff --git a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/GenMachiningParameterExpanderV.xaml.vb b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/GenMachiningParameterExpanderV.xaml.vb index ce7f795..05ea673 100644 --- a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/GenMachiningParameterExpanderV.xaml.vb +++ b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/GenMachiningParameterExpanderV.xaml.vb @@ -80,8 +80,4 @@ Public Class GenMachiningParameterExpanderV End If Return TryCast(target, T) End Function - - Private Sub TextBox_TextChanged(sender As Object, e As TextChangedEventArgs) - UpdateNoteButton.IsEnabled = True - End Sub End Class diff --git a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/MortisingParameterExpanderV.xaml b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/MortisingParameterExpanderV.xaml index 8d0ccae..a3c6026 100644 --- a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/MortisingParameterExpanderV.xaml +++ b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/MortisingParameterExpanderV.xaml @@ -232,6 +232,86 @@ Style="{DynamicResource StringParamV_Margin}"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/MortisingParameterExpanderV.xaml.vb b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/MortisingParameterExpanderV.xaml.vb index 0718765..b83cae7 100644 --- a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/MortisingParameterExpanderV.xaml.vb +++ b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/MortisingParameterExpanderV.xaml.vb @@ -80,5 +80,4 @@ Public Class MortisingParameterExpanderV End If Return TryCast(target, T) End Function - End Class diff --git a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/PocketingParameterExpanderV.xaml b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/PocketingParameterExpanderV.xaml index 5827220..2f93ee4 100644 --- a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/PocketingParameterExpanderV.xaml +++ b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/PocketingParameterExpanderV.xaml @@ -262,42 +262,83 @@ - + + + + + + - - - - - + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + diff --git a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/PocketingParameterExpanderV.xaml.vb b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/PocketingParameterExpanderV.xaml.vb index 0c89952..90bb776 100644 --- a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/PocketingParameterExpanderV.xaml.vb +++ b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/PocketingParameterExpanderV.xaml.vb @@ -80,8 +80,4 @@ Public Class PocketingParameterExpanderV End If Return TryCast(target, T) End Function - - Private Sub TextBox_TextChanged(sender As Object, e As TextChangedEventArgs) - UpdateNoteButton.IsEnabled = True - End Sub End Class diff --git a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/StoneSawingParameterExpanderV.xaml b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/StoneSawingParameterExpanderV.xaml index f716d15..4c72784 100644 --- a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/StoneSawingParameterExpanderV.xaml +++ b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/StoneSawingParameterExpanderV.xaml @@ -314,42 +314,83 @@ - + + + + + + - - - - - + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + diff --git a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/StoneSawingParameterExpanderV.xaml.vb b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/StoneSawingParameterExpanderV.xaml.vb index b6a6c6d..a14bbee 100644 --- a/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/StoneSawingParameterExpanderV.xaml.vb +++ b/OptionPanel/MachiningOptionPanel/OperationExpander/MachiningParameterExpander/StoneSawingParameterExpanderV.xaml.vb @@ -80,8 +80,4 @@ Public Class StoneSawingParameterExpanderV End If Return TryCast(target, T) End Function - - Private Sub TextBox_TextChanged(sender As Object, e As TextChangedEventArgs) - UpdateNoteButton.IsEnabled = True - End Sub End Class diff --git a/OptionPanel/MachiningOptionPanel/OperationParametersExpander/OperationParametersExpanderV.xaml b/OptionPanel/MachiningOptionPanel/OperationParametersExpander/OperationParametersExpanderV.xaml index 782b2ec..274920c 100644 --- a/OptionPanel/MachiningOptionPanel/OperationParametersExpander/OperationParametersExpanderV.xaml +++ b/OptionPanel/MachiningOptionPanel/OperationParametersExpander/OperationParametersExpanderV.xaml @@ -1,6 +1,6 @@  + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> @@ -13,7 +13,7 @@ - + diff --git a/OptionPanel/MachiningOptionPanelV.xaml b/OptionPanel/MachiningOptionPanelV.xaml index 8bf918d..1434f04 100644 --- a/OptionPanel/MachiningOptionPanelV.xaml +++ b/OptionPanel/MachiningOptionPanelV.xaml @@ -1,8 +1,8 @@  + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="250" + xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5" + xmlns:interactivity="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"> @@ -20,6 +20,6 @@ IsEnabled="{Binding GenerateIsEnabled}" Command="{Binding GenerateCommand}"/> - + diff --git a/OptionsWindow/MachineBox.xaml b/OptionsWindow/MachineBox.xaml index 41676de..1f29b12 100644 --- a/OptionsWindow/MachineBox.xaml +++ b/OptionsWindow/MachineBox.xaml @@ -1,10 +1,10 @@  + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5" + Height="160" Width="380" WindowStyle="None" ResizeMode="NoResize" + TitleBarHeight="30" IsResizable="False" IsMinimizable="False" + ShowInTaskbar="False" WindowStartupLocation="CenterOwner"> @@ -22,7 +22,7 @@ + VerticalAlignment="Center" /> + IsSynchronizedWithCurrentItem="False">