From dd13554edc2816b026b00fbad26d17f82d8d16c3 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Tue, 17 Jun 2025 07:26:14 +0300 Subject: Merge --- .../Visual_Studio/Utilities/Tango.MachineEM.UI/MainWindow.xaml | 2 +- .../Utilities/Tango.MachineEM.UI/Tango.MachineEM.UI.csproj | 5 +++-- .../Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs | 7 +++++++ .../Utilities/Tango.MachineEM.UI/Views/MainView.xaml | 9 ++++++++- 4 files changed, 19 insertions(+), 4 deletions(-) (limited to 'Software/Visual_Studio/Utilities/Tango.MachineEM.UI') diff --git a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/MainWindow.xaml b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/MainWindow.xaml index 875072faa..41ecbb552 100644 --- a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/MainWindow.xaml +++ b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/MainWindow.xaml @@ -9,7 +9,7 @@ xmlns:local="clr-namespace:Tango.MachineEM.UI" xmlns:views="clr-namespace:Tango.MachineEM.UI.Views" mc:Ignorable="d" - Title="Firmware Emulator" Height="820" Width="1300" TitleCaps="False" BorderBrush="Gray" BorderThickness="1" WindowStartupLocation="CenterScreen" Background="#202020" Foreground="Gainsboro" DataContext="{Binding RelativeSource={RelativeSource Self}}"> + Title="Firmware Emulator" Height="950" Width="1400" TitleCaps="False" BorderBrush="Gray" BorderThickness="1" WindowStartupLocation="CenterScreen" Background="#202020" Foreground="Gainsboro" DataContext="{Binding RelativeSource={RelativeSource Self}}"> diff --git a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/Tango.MachineEM.UI.csproj b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/Tango.MachineEM.UI.csproj index c6f382afe..07e03cfd4 100644 --- a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/Tango.MachineEM.UI.csproj +++ b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/Tango.MachineEM.UI.csproj @@ -204,11 +204,12 @@ - $(TargetDir)linkgen.exe -s "$(TargetPath)" -d "$(SolutionDir)Build\Shortcuts\Machine Emulator.lnk" + + - + \ No newline at end of file diff --git a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs index 6b97bae31..7d74b5d04 100644 --- a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs @@ -148,6 +148,7 @@ namespace Tango.MachineEM.UI.ViewModels public RelayCommand RequestWasteReplaceCommand { get; set; } + public RelayCommand FailJobCommand { get; set; } #endregion #region Constructors @@ -182,6 +183,7 @@ namespace Tango.MachineEM.UI.ViewModels FinalizeThreadLoadingCommand = new RelayCommand(FinalizeThreadLoading, (x) => Emulator.IsStarted && _isThreadLoading); AbortJobCommand = new RelayCommand(() => Emulator?.AbortJob(), (x) => Emulator.IsStarted); RequestWasteReplaceCommand = new RelayCommand(RequestWasteReplace, (x) => Emulator.IsStarted); + FailJobCommand = new RelayCommand(FailJob, () => Emulator.IsStarted); Ports = new List() { @@ -376,6 +378,11 @@ namespace Tango.MachineEM.UI.ViewModels catch { } } + private void FailJob() + { + Emulator.FailJobWithEvent(); + } + #endregion #region Private Methods diff --git a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/Views/MainView.xaml b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/Views/MainView.xaml index 98e70d6a5..cc49b0ccd 100644 --- a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/Views/MainView.xaml +++ b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/Views/MainView.xaml @@ -14,7 +14,7 @@ xmlns:localConverters="clr-namespace:Tango.MachineEM.UI.Converters" xmlns:local="clr-namespace:Tango.MachineEM.UI.Views" mc:Ignorable="d" - d:DesignHeight="780" d:DesignWidth="1300" Foreground="Gainsboro" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" > + d:DesignHeight="900" d:DesignWidth="1400" Foreground="Gainsboro" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" > @@ -182,6 +182,13 @@ PUT DATA STORE ITEM + + -- cgit v1.3.1