2019-10-12 18:18:21 +00:00
|
|
|
<Window
|
2019-10-11 22:30:12 +00:00
|
|
|
x:Class="Wabbajack.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:local="clr-namespace:Wabbajack"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
Title="Wabbajack"
|
|
|
|
Width="1280"
|
|
|
|
Height="960"
|
2019-10-14 00:56:09 +00:00
|
|
|
MinWidth="1024"
|
|
|
|
MinHeight="768"
|
2019-10-11 22:30:12 +00:00
|
|
|
Closing="Window_Closing"
|
2019-10-22 01:08:26 +00:00
|
|
|
Icon="../Resources/Icons/wabbajack.ico"
|
2019-10-11 22:30:12 +00:00
|
|
|
ResizeMode="CanResize"
|
|
|
|
Style="{StaticResource {x:Type Window}}"
|
|
|
|
WindowStyle="ToolWindow"
|
|
|
|
mc:Ignorable="d">
|
2019-10-22 02:12:55 +00:00
|
|
|
<Viewbox Stretch="Uniform" DataContext="{Binding AppState}">
|
2019-10-09 11:33:13 +00:00
|
|
|
<Grid Margin="4,0,4,0">
|
2019-09-26 03:18:36 +00:00
|
|
|
<Grid.RowDefinitions>
|
2019-10-09 10:36:00 +00:00
|
|
|
<RowDefinition Height="Auto" />
|
2019-10-11 22:30:12 +00:00
|
|
|
<RowDefinition Height="435" />
|
2019-10-09 10:36:00 +00:00
|
|
|
<RowDefinition Height="10" />
|
|
|
|
<RowDefinition Height="Auto" />
|
2019-10-11 22:30:12 +00:00
|
|
|
<RowDefinition Height="320" />
|
2019-10-09 10:36:00 +00:00
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
2019-09-26 03:18:36 +00:00
|
|
|
</Grid.RowDefinitions>
|
2019-10-09 10:36:00 +00:00
|
|
|
<Grid.ColumnDefinitions>
|
2019-10-11 22:30:12 +00:00
|
|
|
<ColumnDefinition Width="640" />
|
|
|
|
<ColumnDefinition Width="640" />
|
2019-10-09 10:36:00 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
2019-10-11 22:30:12 +00:00
|
|
|
<StackPanel
|
|
|
|
Grid.Row="0"
|
|
|
|
Margin="0,8,0,8"
|
|
|
|
Orientation="Horizontal">
|
|
|
|
<TextBlock
|
|
|
|
FontSize="16"
|
|
|
|
FontWeight="Bold"
|
|
|
|
Text="{Binding Mode}" />
|
|
|
|
<TextBlock FontSize="16" Text=" : " />
|
|
|
|
<TextBlock FontSize="16" Text="{Binding ModListName}" />
|
2019-10-09 10:36:00 +00:00
|
|
|
</StackPanel>
|
|
|
|
|
2019-10-13 19:39:29 +00:00
|
|
|
<local:SlideshowView
|
|
|
|
x:Name="Slideshow"
|
2019-10-11 22:30:12 +00:00
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Column="0"
|
2019-10-13 19:39:29 +00:00
|
|
|
Grid.ColumnSpan="2"
|
2019-10-13 20:24:33 +00:00
|
|
|
Margin="0,0,0,4"
|
2019-10-13 19:39:29 +00:00
|
|
|
DataContext="{Binding Slideshow}" />
|
2019-09-26 03:18:36 +00:00
|
|
|
|
2019-10-11 22:30:12 +00:00
|
|
|
<ProgressBar
|
|
|
|
Grid.Row="2"
|
|
|
|
Grid.Column="0"
|
|
|
|
Grid.ColumnSpan="2"
|
|
|
|
Margin="1,0,1,0"
|
|
|
|
Background="#444444"
|
|
|
|
Maximum="100"
|
|
|
|
Minimum="0"
|
2019-10-22 03:03:01 +00:00
|
|
|
Value="{Binding MWVM.QueueProgress}" />
|
2019-10-09 10:36:00 +00:00
|
|
|
|
2019-10-11 22:30:12 +00:00
|
|
|
<!-- Log -->
|
|
|
|
<TextBlock
|
|
|
|
Grid.Row="3"
|
|
|
|
Margin="0,16,0,8"
|
|
|
|
FontSize="14"
|
|
|
|
Text="Log:" />
|
|
|
|
<ListBox
|
|
|
|
Grid.Row="4"
|
|
|
|
Margin="0,0,2,0"
|
|
|
|
local:AutoScrollBehavior.ScrollOnNewItem="True"
|
2019-10-23 04:15:42 +00:00
|
|
|
ItemsSource="{Binding MWVM.Log}" />
|
2019-10-11 22:30:12 +00:00
|
|
|
<!-- End Log -->
|
2019-10-09 11:07:04 +00:00
|
|
|
|
2019-10-11 22:30:12 +00:00
|
|
|
<!-- Location -->
|
|
|
|
<Grid
|
|
|
|
Grid.Row="5"
|
|
|
|
Grid.RowSpan="2"
|
|
|
|
Grid.Column="0"
|
|
|
|
Margin="-4,10,2,10"
|
|
|
|
HorizontalAlignment="Stretch">
|
2019-10-09 10:36:00 +00:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition />
|
|
|
|
<RowDefinition MinHeight="10" />
|
|
|
|
<RowDefinition />
|
|
|
|
</Grid.RowDefinitions>
|
2019-10-11 22:30:12 +00:00
|
|
|
<Label
|
|
|
|
Grid.Row="0"
|
|
|
|
Grid.Column="0"
|
|
|
|
Content="{Binding LocationLabel}" />
|
|
|
|
<TextBox
|
|
|
|
Grid.Row="0"
|
|
|
|
Grid.Column="1"
|
|
|
|
IsEnabled="{Binding UIReady}"
|
|
|
|
Text="{Binding Location, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True, NotifyOnValidationError=True}" />
|
|
|
|
<Button
|
|
|
|
Grid.Row="0"
|
|
|
|
Grid.Column="2"
|
|
|
|
MinWidth="80"
|
|
|
|
Command="{Binding ChangePathCommand}"
|
|
|
|
Content="Select"
|
|
|
|
IsEnabled="{Binding UIReady}" />
|
|
|
|
<Label
|
|
|
|
Grid.Row="2"
|
|
|
|
Grid.Column="0"
|
|
|
|
Content="Download Location:" />
|
|
|
|
<TextBox
|
|
|
|
Grid.Row="2"
|
|
|
|
Grid.Column="1"
|
|
|
|
IsEnabled="{Binding UIReady}"
|
|
|
|
Text="{Binding DownloadLocation}" />
|
|
|
|
<Button
|
|
|
|
Grid.Row="2"
|
|
|
|
Grid.Column="2"
|
|
|
|
MinWidth="80"
|
|
|
|
Command="{Binding ChangeDownloadPathCommand}"
|
|
|
|
Content="Select"
|
|
|
|
IsEnabled="{Binding UIReady}" />
|
2019-10-09 10:36:00 +00:00
|
|
|
</Grid>
|
2019-10-11 22:30:12 +00:00
|
|
|
<!-- End Location -->
|
2019-09-26 03:18:36 +00:00
|
|
|
|
|
|
|
|
2019-10-11 22:30:12 +00:00
|
|
|
<!-- Work Queue Start -->
|
|
|
|
<TextBlock
|
|
|
|
Grid.Row="3"
|
|
|
|
Grid.Column="1"
|
|
|
|
Margin="2,16,0,8"
|
|
|
|
FontSize="14"
|
|
|
|
Text="Work Queue:" />
|
2019-09-26 03:18:36 +00:00
|
|
|
|
2019-10-11 22:30:12 +00:00
|
|
|
<ListBox
|
|
|
|
Grid.Row="4"
|
|
|
|
Grid.Column="1"
|
|
|
|
Width="Auto"
|
|
|
|
Margin="2,0,0,0"
|
|
|
|
HorizontalAlignment="Stretch"
|
2019-10-22 03:03:01 +00:00
|
|
|
ItemsSource="{Binding MWVM.StatusList}">
|
2019-10-09 10:36:00 +00:00
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid HorizontalAlignment="Stretch">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
</Grid.ColumnDefinitions>
|
2019-10-11 22:30:12 +00:00
|
|
|
<ProgressBar
|
|
|
|
Grid.Column="0"
|
|
|
|
Width="100"
|
|
|
|
Maximum="100"
|
|
|
|
Minimum="0"
|
|
|
|
Value="{Binding Progress, Mode=OneTime}">
|
2019-10-09 10:36:00 +00:00
|
|
|
<ProgressBar.Style>
|
|
|
|
<Style TargetType="ProgressBar">
|
|
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
|
|
<Style.Triggers>
|
|
|
|
<DataTrigger Binding="{Binding Progress}" Value="0">
|
|
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
|
|
</DataTrigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
</ProgressBar.Style>
|
|
|
|
</ProgressBar>
|
2019-10-11 22:30:12 +00:00
|
|
|
<TextBlock Grid.Column="1" Text=" CPU " />
|
|
|
|
<TextBlock Grid.Column="2" Text="{Binding ID}" />
|
|
|
|
<TextBlock Grid.Column="3" Text=" - " />
|
|
|
|
<TextBlock Grid.Column="4" Text="{Binding Msg}" />
|
2019-10-09 10:36:00 +00:00
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
</ListBox>
|
2019-10-11 22:30:12 +00:00
|
|
|
<!-- Work Queue End -->
|
2019-09-26 03:18:36 +00:00
|
|
|
|
2019-10-11 22:30:12 +00:00
|
|
|
<Grid
|
|
|
|
Grid.Row="5"
|
|
|
|
Grid.RowSpan="2"
|
|
|
|
Grid.Column="1"
|
|
|
|
Margin="2,10,0,10">
|
2019-10-09 11:07:04 +00:00
|
|
|
<Grid.RowDefinitions>
|
2019-10-11 22:30:12 +00:00
|
|
|
<RowDefinition Height="30" />
|
|
|
|
<RowDefinition Height="30" />
|
2019-10-09 11:07:04 +00:00
|
|
|
</Grid.RowDefinitions>
|
2019-10-11 22:30:12 +00:00
|
|
|
<Button
|
|
|
|
Grid.Row="0"
|
|
|
|
Margin="0,0,0,4"
|
|
|
|
Command="{Binding ShowReportCommand}"
|
2019-10-12 19:11:52 +00:00
|
|
|
Visibility="{Binding HTMLReport, Converter={StaticResource IsNotNullVisibilityConverter}}">
|
2019-10-09 11:07:04 +00:00
|
|
|
<TextBlock FontSize="13" FontWeight="Bold">View ModList Contents</TextBlock>
|
|
|
|
</Button>
|
2019-10-11 22:30:12 +00:00
|
|
|
<Button
|
|
|
|
Grid.Row="1"
|
|
|
|
Margin="0,4,0,0"
|
2019-10-12 18:42:47 +00:00
|
|
|
Command="{Binding BeginCommand}">
|
2019-10-09 11:07:04 +00:00
|
|
|
<TextBlock FontSize="13" FontWeight="Bold">Begin</TextBlock>
|
|
|
|
</Button>
|
|
|
|
</Grid>
|
2019-10-09 10:36:00 +00:00
|
|
|
</Grid>
|
|
|
|
</Viewbox>
|
2019-10-14 00:56:09 +00:00
|
|
|
</Window>
|