diff --git a/Application.xaml b/Application.xaml index 2e13841..1a30760 100644 --- a/Application.xaml +++ b/Application.xaml @@ -1,7 +1,9 @@  - - - + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > + + + + + diff --git a/CNCommunication.vb b/CNCommunication.vb index 729228c..f020cfb 100644 --- a/CNCommunication.vb +++ b/CNCommunication.vb @@ -122,7 +122,7 @@ Public Class CNCommunication Private Sub InitCn() - m_MachineStatus.MachineStatusGrid.Background = Brushes.Gold + m_MachineStatus.MachineStatusGrid.Background = Application.Current.FindResource("OmagCut_Yellow") ' istanzio l'oggetto CN e lo inizializzo Try @@ -160,14 +160,15 @@ Public Class CNCommunication Select Case m_nNCType Case 0 'Debug + m_MachineStatus.MachineStatusGrid.Background = Brushes.Gold Case 1, 2 'Axium, Flexium If IsNothing(m_CN) OrElse m_CN.n_state < 2 Then ' Per evitare crash con azioni verso il controllo, avvio quello di debug Me.m_CN = New CN_Debug - m_MachineStatus.MachineStatusGrid.Background = Brushes.Red + m_MachineStatus.MachineStatusGrid.Background = Application.Current.FindResource("OmagCut_Red") Else m_CN.b_axis_events_enable = True - m_MachineStatus.MachineStatusGrid.Background = Brushes.Gray + m_MachineStatus.MachineStatusGrid.Background = Application.Current.FindResource("OmagCut_DarkGray") End If End Select diff --git a/CadCutPageUC.xaml b/CadCutPageUC.xaml index 574dee0..d5c51e0 100644 --- a/CadCutPageUC.xaml +++ b/CadCutPageUC.xaml @@ -34,25 +34,20 @@ - - - - - @@ -69,11 +64,16 @@ - - - - - - - - - - - - - - - + + - - - - - - - - - - - - + + + + + + + + + + + + + diff --git a/MainWindow.xaml.vb b/MainWindow.xaml.vb index a93013b..b52ab12 100644 --- a/MainWindow.xaml.vb +++ b/MainWindow.xaml.vb @@ -278,7 +278,7 @@ Class MainWindow End If Next ' Imposto i messaggi letti dal file dei messaggi - WorkInProgressTxBl.Text = EgtMsg(MSG_GENERAL + 1) + WorkInProgressBtn.Content = EgtMsg(MSG_GENERAL + 1) DirectCutBtn.Content = EgtMsg(MSG_GENERAL + 2) CadCutBtn.Content = EgtMsg(MSG_GENERAL + 3) FrameCutBtn.Content = EgtMsg(MSG_GENERAL + 4) diff --git a/ManualAxesMoveUC.xaml b/ManualAxesMoveUC.xaml index 296cf1b..492b851 100644 --- a/ManualAxesMoveUC.xaml +++ b/ManualAxesMoveUC.xaml @@ -12,13 +12,14 @@ - + - + + @@ -27,13 +28,13 @@ - + - + @@ -54,5 +55,19 @@ + + + + + + + + + + + diff --git a/ManualAxesMoveUC.xaml.vb b/ManualAxesMoveUC.xaml.vb index b98f2a5..0151611 100644 --- a/ManualAxesMoveUC.xaml.vb +++ b/ManualAxesMoveUC.xaml.vb @@ -147,4 +147,8 @@ Public Class ManualAxesMoveUC Return dVal End Function + Private Sub BackBtn_Click(sender As Object, e As RoutedEventArgs) Handles BackBtn.Click + m_MainWindow.m_DirectCutPageUC.LeftButtonGrid.Children.Remove(Me) + End Sub + End Class diff --git a/NestPageUC.xaml b/NestPageUC.xaml index f63cade..fcad1dd 100644 --- a/NestPageUC.xaml +++ b/NestPageUC.xaml @@ -1,92 +1,92 @@  + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + mc:Ignorable="d" + d:DesignHeight="853.3" d:DesignWidth="256" Initialized="NestPage_Initialized" Loaded="NestPage_Loaded" Unloaded="NestPage_Unloaded"> + + + + + + + + + + + + + + + + + + + + + + + + + +