/
wndDuplicateFinder.xaml
49 lines (49 loc) · 5.32 KB
/
wndDuplicateFinder.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<Window x:Name="wndDuplicateFinder1" x:Class="Random_Item_Giver_Updater.wndDuplicateFinder"
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:local="clr-namespace:Random_Item_Giver_Updater"
mc:Ignorable="d"
Background="#FF323232" Title="Duplicate Finder" Height="723" Width="802" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
<Window.Resources>
<DataTemplate x:Key="DuplicateTemplate">
<Canvas x:Name="cvsDuplicate" Height="40" >
<TextBlock x:Name="tblItemName" Width="220" Height="23" FontSize="15" Foreground="White" Canvas.Top="10" Canvas.Left="22" Text="{Binding itemName}" MouseDown="tblItemName_MouseDown"/>
<TextBlock x:Name="tblAmount" FontSize="16" Foreground="White" Canvas.Top="10" Canvas.Left="257" Text="{Binding amount}"/>
<TextBlock x:Name="tblLootTables" Width="240" Height="23" FontSize="16" Foreground="White" Canvas.Top="10" Canvas.Left="330" Text="{Binding lootTables}" FontWeight="DemiBold"/>
<Button x:Name="btnViewAll" Height="23" Width="100" Content="View All" FontSize="15" Canvas.Top="10" Canvas.Left="590" Click="btnViewAll_Click"/>
</Canvas>
</DataTemplate>
</Window.Resources>
<Grid x:Name="grdDuplicateFinder">
<TextBlock x:Name="tblHeader" HorizontalAlignment="Left" Margin="22,12,0,0" TextWrapping="Wrap" Text="Duplicate Finder" VerticalAlignment="Top" FontSize="22" FontWeight="SemiBold" Foreground="White"/>
<Canvas x:Name="cvsStep1" Margin="10,58,79,82" Visibility="Hidden">
<TextBlock x:Name="tblcvs1Header" Canvas.Left="10" TextWrapping="Wrap" Canvas.Top="5" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White" FontSize="16" Width="718"><Run Text="Welcome to the "/><Run Text="D"/><Run Text="uplicat"/><Run Text="e"/><Run Text=" Finder wizard. This wizard will help you find and remove duplicates in the Random Item Giver Datapack"/><Run Language="de-de" Text="."/><LineBreak/><Run/><LineBreak/><Run Text="Please select where the software should search for duplicates. They will be shown in a list after the process has completed."/></TextBlock>
<RadioButton x:Name="rbtnCurrent" Content="Only the currently selected Loot Table" Canvas.Left="10" Canvas.Top="137" Foreground="White" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Top" IsChecked="True" Padding="4,-4,0,0"/>
<RadioButton x:Name="rbtnAll" Content="All Loot Tables in the currently selected Datapack" Canvas.Left="10" Canvas.Top="161" Foreground="White" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Top" Padding="4,-4,0,0"/>
</Canvas>
<Canvas x:Name="cvsStep2" Margin="10,58,65,98" Visibility="Visible">
<ListBox x:Name="lbDuplicates" ItemsSource="{Binding duplicateEntries}" Background="#FF323232" Focusable="False" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="390" Canvas.Top="107" Width="735" HorizontalAlignment="Left" VerticalAlignment="Center" Canvas.Left="-11">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel>
<ContentControl Content="{Binding}" ContentTemplate="{StaticResource DuplicateTemplate}" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<TextBlock x:Name="tblDuplicateCategories" TextWrapping="Wrap" Canvas.Top="67" FontWeight="DemiBold" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Top" Foreground="White" Canvas.Left="12"><Run Language="de-de" Text=" "/><Run Text="Item name "/><Run Text=" "/><Run Text=" "/><Run Text=" "/><Run Text=" "/><Run Text=" "/><Run Text="Amount Loot Table(s)"/></TextBlock>
<TextBlock x:Name="tblCvs2Header" Canvas.Left="12" TextWrapping="Wrap" Text="The following list contains all duplicate items. It shows their names, as well as how often and where the appear." Canvas.Top="5" FontSize="16" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Top" Width="705"/>
<Button x:Name="btnDelete" Content="Delete Duplicates" Width="144" Height="26" FontSize="16" HorizontalAlignment="Center" Canvas.Left="140" Canvas.Top="507" VerticalAlignment="Top" Click="btnDelete_Click"/>
<Button x:Name="btnExportList" Content="Export List" Width="117" Height="26" FontSize="16" HorizontalAlignment="Center" Canvas.Left="7" Canvas.Top="507" VerticalAlignment="Top" Click="btnExportList_Click"/>
</Canvas>
<Button x:Name="btnContinue" Content="Continue" HorizontalAlignment="Left" Margin="663,644,0,0" VerticalAlignment="Top" Height="25" Width="100" FontSize="16"/>
<Button x:Name="btnBack" Content="Back" HorizontalAlignment="Left" Margin="546,644,0,0" VerticalAlignment="Top" Height="25" Width="100" FontSize="16"/>
</Grid>
</Window>