aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-10-20 20:58:32 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-10-20 20:58:32 +0300
commit50b5a229c4fe547a896539f24c96e5e9a86ebb80 (patch)
tree653f78a466296564862e5bcba38422284f693545 /Software/Visual_Studio/Utilities
parentb732167cbc51f0b19447d67687af5c514cf4f65a (diff)
downloadTango-50b5a229c4fe547a896539f24c96e5e9a86ebb80.tar.gz
Tango-50b5a229c4fe547a896539f24c96e5e9a86ebb80.zip
DATA STORE !
Diffstat (limited to 'Software/Visual_Studio/Utilities')
-rw-r--r--Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs4
-rw-r--r--Software/Visual_Studio/Utilities/Tango.MachineEM.UI/Views/MainView.xaml9
2 files changed, 12 insertions, 1 deletions
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 a66ed6b7e..b46b89a4a 100644
--- a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs
+++ b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs
@@ -138,6 +138,8 @@ namespace Tango.MachineEM.UI.ViewModels
/// </summary>
public RelayCommand AbortJobCommand { get; set; }
+ public RelayCommand PerformDataStoreTestCommand { get; set; }
+
#endregion
#region Constructors
@@ -187,6 +189,8 @@ namespace Tango.MachineEM.UI.ViewModels
};
SelectedPort = Ports.First();
+
+ PerformDataStoreTestCommand = new RelayCommand(Emulator.PerformDataStoreTest);
}
#endregion
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 73a14b5b1..f553ec588 100644
--- a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/Views/MainView.xaml
+++ b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/Views/MainView.xaml
@@ -146,7 +146,6 @@
<Popup IsOpen="{Binding ElementName=toggleIFS,Path=IsChecked}" StaysOpen="True" PlacementTarget="{Binding ElementName=toggleIFS}" Placement="Bottom">
<controls:InkFillingStatusView Height="300" Width="210" DataContext="{Binding Emulator.InkFillingStatus}" />
</Popup>
- <!--BUTTONS HERE-->
<Button Padding="10 0 0 0" Margin="5" Height="45" HorizontalContentAlignment="Left" Style="{StaticResource AccentedSquareButtonStyle}" mahapps:ButtonHelper.PreserveTextCase="True" BorderThickness="0" Command="{Binding AbortJobCommand}">
<DockPanel>
@@ -155,6 +154,14 @@
</DockPanel>
</Button>
+ <Button Padding="10 0 0 0" Margin="5" Height="45" HorizontalContentAlignment="Left" Style="{StaticResource AccentedSquareButtonStyle}" mahapps:ButtonHelper.PreserveTextCase="True" BorderThickness="0" Command="{Binding PerformDataStoreTestCommand}">
+ <DockPanel>
+ <fa:ImageAwesome Icon="Database" Width="16"></fa:ImageAwesome>
+ <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center">DATASTORE TEST</TextBlock>
+ </DockPanel>
+ </Button>
+ <!--BUTTONS HERE-->
+
<DockPanel Margin="5 20 5 0">
<TextBlock FontSize="12" DockPanel.Dock="Top">Thread Loading State</TextBlock>
<ComboBox Margin="0 5 0 0" ItemsSource="{Binding Source={x:Type threadLoading:ThreadLoadingState},Converter={StaticResource EnumToItemsSourceConverter}}" SelectedValue="{Binding ThreadLoadingState,Mode=OneWayToSource}" SelectedValuePath="Value" DisplayMemberPath="DisplayName"></ComboBox>