aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindow.xaml
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindow.xaml')
-rw-r--r--Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindow.xaml99
1 files changed, 0 insertions, 99 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindow.xaml b/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindow.xaml
deleted file mode 100644
index d31e45d72..000000000
--- a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindow.xaml
+++ /dev/null
@@ -1,99 +0,0 @@
-<Window x:Class="Tango.JobProgressTester.UI.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:jobViews="clr-namespace:Tango.PPC.Jobs.Views;assembly=Tango.PPC.Jobs"
- xmlns:local="clr-namespace:Tango.JobProgressTester.UI"
- mc:Ignorable="d"
- Title="Job Progress Tester" Height="950" Width="600" d:DataContext="{d:DesignInstance Type=local:MainWindowVM,IsDesignTimeCreatable=False}">
- <Grid IsEnabled="{Binding IsFree}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="90"/>
- <RowDefinition Height="600*"/>
- <RowDefinition Height="150*"/>
- <RowDefinition Height="110"/>
- </Grid.RowDefinitions>
-
- <ComboBox FontSize="20" VerticalAlignment="Center" HorizontalAlignment="Center" Width="350" ItemsSource="{Binding Jobs}" SelectedItem="{Binding SelectedJob}" DisplayMemberPath="Name" Margin="96,28"></ComboBox>
-
- <Grid Grid.Row="1">
- <Viewbox Stretch="Uniform">
- <jobViews:JobProgressView Width="800" Height="1000" DataContext="{Binding JobProgressViewVM}" />
- </Viewbox>
- </Grid>
-
- <Grid Grid.Row="2">
- <StackPanel Margin="10">
- <TextBlock>Current Unit Segments.</TextBlock>
- <ItemsControl ItemsSource="{Binding JobProgressViewVM.RunningJobStatus.CurrentUnitSegments}" Margin="0 5">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <DockPanel>
- <TextBlock>
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Visibility" Value="Visible"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding IsInterSegment}" Value="True">
- <Setter Property="Visibility" Value="Collapsed"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- <Run>Segment</Run>
- <Run Text="{Binding SegmentIndex}"></Run>
- </TextBlock>
- <TextBlock Text="Inter Segment">
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Visibility" Value="Collapsed"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding IsInterSegment}" Value="True">
- <Setter Property="Visibility" Value="Visible"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Margin="10 0 0 0">
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Text" Value="Pending"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding Started}" Value="True">
- <Setter Property="Text" Value="Started"></Setter>
- </DataTrigger>
- <DataTrigger Binding="{Binding Completed}" Value="True">
- <Setter Property="Text" Value="Completed"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Margin="10 0 0 0" Text="{Binding RemainingTime,StringFormat='hh\\:mm\\:ss'}"></TextBlock>
- </DockPanel>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </StackPanel>
- </Grid>
-
- <Grid Grid.Row="3">
- <StackPanel Margin="20">
- <TextBlock HorizontalAlignment="Center">
- <Run Text="{Binding Progress,Mode=OneWay,StringFormat='0.0'}"></Run>
- <Run>/</Run>
- <Run Text="{Binding JobHandler.Status.TotalProgress,Mode=OneWay,StringFormat='0.0'}"></Run>
- </TextBlock>
- <DockPanel Margin="0 5 0 0" HorizontalAlignment="Center" Width="200" >
- <Button DockPanel.Dock="Right" Width="40" Height="20">SET</Button>
- <TextBox Text="{Binding Progress}"></TextBox>
- </DockPanel>
- <Slider VerticalAlignment="Center" Margin="0 10 0 0" Maximum="{Binding JobHandler.Status.TotalProgress}" Value="{Binding Progress,Mode=TwoWay}"></Slider>
- </StackPanel>
- </Grid>
- </Grid>
- </Grid>
-</Window>