-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
148 lines (148 loc) · 16.4 KB
/
MainWindow.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<mah:MetroWindow x:Class="HDT_CardPackOpeningCounter.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:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
xmlns:mah="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:HDT_CardPackOpeningCounter"
Title="Hearthstone Card Pack Opening Counter"
Width="800"
Height="434.262"
ResizeMode="CanResizeWithGrip"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d" Closing="MetroWindow_Closing">
<mah:MetroWindow.Resources>
</mah:MetroWindow.Resources>
<Grid HorizontalAlignment="Left" Height="402" VerticalAlignment="Top" Width="790">
<Grid.RowDefinitions>
<RowDefinition Height="46*"/>
<RowDefinition Height="33"/>
<RowDefinition Height="54"/>
<RowDefinition Height="61*"/>
<RowDefinition Height="34"/>
<RowDefinition Height="54"/>
<RowDefinition Height="61*"/>
<RowDefinition Height="25*"/>
<RowDefinition Height="34*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition MaxWidth="38"/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Label x:Name="lCommon" Content="Common" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Width="188" Height="32" Background="{x:Null}" RenderTransformOrigin="0.275,0.324" FontSize="16" FontWeight="Bold" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Row="1" Margin="0,0,0,1"/>
<Label x:Name="lRare" Content="Rare" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="188" Height="32" Background="{x:Null}" RenderTransformOrigin="0.275,0.324" FontSize="16" FontWeight="Bold" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Row="1" Margin="0,0,0,1"/>
<Label x:Name="lEpic" Content="Epic" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" Width="188" Height="32" Background="{x:Null}" RenderTransformOrigin="0.275,0.324" FontSize="16" FontWeight="Bold" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Row="1" Margin="0,0,0,1"/>
<Label x:Name="lLegendary" Content="Legendary" Grid.Column="4" HorizontalAlignment="Center" VerticalAlignment="Center" Width="188" Height="32" Background="{x:Null}" RenderTransformOrigin="0.275,0.324" FontSize="16" FontWeight="Bold" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Row="1" Margin="0,0,0,1"/>
<Label x:Name="lCountCommon" Content="0" Grid.Column="1" HorizontalAlignment="Center" Grid.Row="2" VerticalAlignment="Center" Height="54" Width="188" FontSize="30" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
<Label x:Name="lCountRare" Content="0" Grid.Column="2" HorizontalAlignment="Center" Grid.Row="2" VerticalAlignment="Center" Height="54" Width="188" FontSize="30" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
<Label x:Name="lCountEpic" Content="0" Grid.Column="3" HorizontalAlignment="Center" Grid.Row="2" VerticalAlignment="Center" Height="54" Width="188" FontSize="30" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
<Label x:Name="lCountLegendary" Content="0" Grid.Column="4" HorizontalAlignment="Center" Grid.Row="2" VerticalAlignment="Center" Height="54" Width="188" FontSize="30" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
<Label x:Name="lGoldenCommon" Content="Golden Common" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Width="188" Height="33" Background="{x:Null}" RenderTransformOrigin="0.275,0.324" FontSize="16" FontWeight="Bold" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Row="4" Margin="0,1,0,0"/>
<Label x:Name="lGoldenRare" Content="Golden Rare" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="188" Height="33" Background="{x:Null}" RenderTransformOrigin="0.275,0.324" FontSize="16" FontWeight="Bold" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Row="4" Margin="0,1,0,0"/>
<Label x:Name="lGoldenEpic" Content="Golden Epic" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" Width="188" Height="33" Background="{x:Null}" RenderTransformOrigin="0.275,0.324" FontSize="16" FontWeight="Bold" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Row="4" Margin="0,1,0,0"/>
<Label x:Name="lGoldenLegendary" Content="Golden Legendary" Grid.Column="4" HorizontalAlignment="Center" VerticalAlignment="Center" Width="188" Height="33" Background="{x:Null}" RenderTransformOrigin="0.275,0.324" FontSize="16" FontWeight="Bold" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Row="4" Margin="0,1,0,0"/>
<Label x:Name="lCountGoldenCommon" Content="0" Grid.Column="1" HorizontalAlignment="Center" Grid.Row="5" VerticalAlignment="Center" Height="54" Width="188" FontSize="30" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
<Label x:Name="lCountGoldenRare" Content="0" Grid.Column="2" HorizontalAlignment="Center" Grid.Row="5" VerticalAlignment="Center" Height="54" Width="188" FontSize="30" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
<Label x:Name="lCountGoldenEpic" Content="0" Grid.Column="3" HorizontalAlignment="Center" Grid.Row="5" VerticalAlignment="Center" Height="54" Width="188" FontSize="30" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
<Label x:Name="lCountGoldenLegendary" Content="0" Grid.Column="4" HorizontalAlignment="Center" Grid.Row="5" VerticalAlignment="Center" Height="54" Width="188" FontSize="30" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
<Grid Grid.Column="1" Grid.Row="8" HorizontalAlignment="Left" Width="188">
<Grid.ColumnDefinitions>
<ColumnDefinition x:Name="IconDustingValue" Width="19*"/>
<ColumnDefinition x:Name="TextDustingValue" Width="75*"/>
</Grid.ColumnDefinitions>
<Image x:Name="imgDust" HorizontalAlignment="Center" Height="34" VerticalAlignment="Center" Width="48" Source="Resources/icon-dust-needed.png" Stretch="None" Grid.ColumnSpan="2" Margin="-2,0,142,0"/>
<Label x:Name="lCraftingCost" Content="Crafting Cost: 0" HorizontalAlignment="Center" VerticalAlignment="Center" Height="34" Width="150" VerticalContentAlignment="Center" Grid.Column="1"/>
</Grid>
<Grid Grid.Column="4" Grid.Row="8" HorizontalAlignment="Left" Width="188">
<Grid.ColumnDefinitions>
<ColumnDefinition x:Name="IconCraftingCost" Width="19*"/>
<ColumnDefinition x:Name="TextCraftingCost" Width="75*"/>
</Grid.ColumnDefinitions>
<Image HorizontalAlignment="Center" Height="34" VerticalAlignment="Center" Width="48" Stretch="None" Source="Resources/icon-dust.png" Grid.ColumnSpan="2" Margin="0,0,140,0"/>
<Label x:Name="lDustingValue" Content="Dusting Value: 0" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Height="34" Width="148" VerticalContentAlignment="Center" Margin="0,0,2,0"/>
</Grid>
<Label x:Name="lTotalCards" Content="Total Cards: 0" Grid.Column="2" HorizontalAlignment="Center" Grid.Row="8" VerticalAlignment="Center" Height="34" Width="188" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
<Label x:Name="lTotalPacks" Content="Total Packs: 0" Grid.Column="3" HorizontalAlignment="Center" Grid.Row="8" VerticalAlignment="Center" Height="34" Width="188" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
<Menu x:Name="mainMenu" HorizontalAlignment="Left" Height="47" VerticalAlignment="Top" Width="790" Grid.ColumnSpan="5" Grid.RowSpan="2">
<Button x:Name="btnSave" Content="Save" Height="26" Width="175" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="40,10,0,0" Click="btnSave_Click"/>
<Button x:Name="btnLoad" Content="Load" HorizontalAlignment="Center" VerticalAlignment="Center" Height="26" Width="169" Margin="0,10,0,0" Click="btnLoad_Click"/>
<Button x:Name="btnReset" Content="Reset" HorizontalAlignment="Center" VerticalAlignment="Center" Width="165" Height="26" Margin="0,10,0,0" Click="btnReset_Click"/>
<CheckBox x:Name="cbOverlay" Content="Overlay" Width="91" Height="26" HorizontalAlignment="Center" VerticalAlignment="Center" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" FontSize="18" Padding="10,-1,0,0" Unchecked="cbOverlay_Unchecked" Checked="cbOverlay_Checked" Margin="40,10,0,0"/>
</Menu>
<Grid x:Name="gridCommon" Grid.Column="1" HorizontalAlignment="Center" Height="61" Grid.Row="3" VerticalAlignment="Center" Width="188" Margin="0,1,0,33" Grid.RowSpan="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="42*"/>
<ColumnDefinition Width="5*"/>
<ColumnDefinition Width="47*"/>
</Grid.ColumnDefinitions>
<Button Content="+" HorizontalAlignment="Center" Margin="10,10,0,10" VerticalAlignment="Center" Width="74" Height="41" FontSize="32" Padding="0,-8,0,0" VerticalContentAlignment="Center" UseLayoutRounding="True" Click="addCardButton_Click"/>
<Button Content="-" Grid.Column="2" HorizontalAlignment="Center" Margin="10" VerticalAlignment="Center" Width="74" Height="41" FontSize="32" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Padding="0,-5,0,0" Click="removeCardButton_Click"/>
</Grid>
<Grid x:Name="gridRare" Grid.Column="2" HorizontalAlignment="Center" Height="61" Grid.Row="3" VerticalAlignment="Center" Width="188">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="42*"/>
<ColumnDefinition Width="5*"/>
<ColumnDefinition Width="47*"/>
</Grid.ColumnDefinitions>
<Button Content="+" HorizontalAlignment="Center" Margin="10,10,0,10" VerticalAlignment="Center" Width="74" Height="41" FontSize="32" Padding="0,-8,0,0" VerticalContentAlignment="Center" UseLayoutRounding="True" Click="addCardButton_Click"/>
<Button Content="-" Grid.Column="2" HorizontalAlignment="Center" Margin="10" VerticalAlignment="Center" Width="74" Height="41" FontSize="32" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Padding="0,-5,0,0" Click="removeCardButton_Click"/>
</Grid>
<Grid x:Name="gridEpic" Grid.Column="3" HorizontalAlignment="Center" Height="61" Grid.Row="3" VerticalAlignment="Center" Width="188" Margin="0,1,0,33" Grid.RowSpan="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="42*"/>
<ColumnDefinition Width="5*"/>
<ColumnDefinition Width="47*"/>
</Grid.ColumnDefinitions>
<Button Content="+" HorizontalAlignment="Center" Margin="10,10,0,10" VerticalAlignment="Center" Width="74" Height="41" FontSize="32" Padding="0,-8,0,0" VerticalContentAlignment="Center" UseLayoutRounding="True" Click="addCardButton_Click"/>
<Button Content="-" Grid.Column="2" HorizontalAlignment="Center" Margin="10" VerticalAlignment="Center" Width="74" Height="41" FontSize="32" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Padding="0,-5,0,0" Click="removeCardButton_Click"/>
</Grid>
<Grid x:Name="gridLegendary" Grid.Column="4" HorizontalAlignment="Center" Height="61" Grid.Row="3" VerticalAlignment="Center" Width="188" Margin="0,1,0,33" Grid.RowSpan="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="42*"/>
<ColumnDefinition Width="5*"/>
<ColumnDefinition Width="47*"/>
</Grid.ColumnDefinitions>
<Button Content="+" HorizontalAlignment="Center" Margin="10,10,0,10" VerticalAlignment="Center" Width="74" Height="41" FontSize="32" Padding="0,-8,0,0" VerticalContentAlignment="Center" UseLayoutRounding="True" Click="addCardButton_Click"/>
<Button Content="-" Grid.Column="2" HorizontalAlignment="Center" Margin="10" VerticalAlignment="Center" Width="74" Height="41" FontSize="32" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Padding="0,-5,0,0" Click="removeCardButton_Click"/>
</Grid>
<Grid x:Name="gridGoldenCommon" Grid.Column="1" HorizontalAlignment="Center" Height="61" Grid.Row="6" VerticalAlignment="Center" Width="188">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="42*"/>
<ColumnDefinition Width="5*"/>
<ColumnDefinition Width="47*"/>
</Grid.ColumnDefinitions>
<Button Content="+" HorizontalAlignment="Center" Margin="10,10,0,10" VerticalAlignment="Center" Width="74" Height="41" FontSize="32" Padding="0,-8,0,0" VerticalContentAlignment="Center" UseLayoutRounding="True" Click="addCardButton_Click"/>
<Button Content="-" Grid.Column="2" HorizontalAlignment="Center" Margin="10" VerticalAlignment="Center" Width="74" Height="41" FontSize="32" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Padding="0,-5,0,0" Click="removeCardButton_Click"/>
</Grid>
<Grid x:Name="gridGoldenRare" Grid.Column="2" HorizontalAlignment="Center" Height="61" Grid.Row="6" VerticalAlignment="Center" Width="188">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="42*"/>
<ColumnDefinition Width="5*"/>
<ColumnDefinition Width="47*"/>
</Grid.ColumnDefinitions>
<Button Content="+" HorizontalAlignment="Center" Margin="10,10,0,10" VerticalAlignment="Center" Width="74" Height="41" FontSize="32" Padding="0,-8,0,0" VerticalContentAlignment="Center" UseLayoutRounding="True" Click="addCardButton_Click"/>
<Button Content="-" Grid.Column="2" HorizontalAlignment="Center" Margin="10" VerticalAlignment="Center" Width="74" Height="41" FontSize="32" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Padding="0,-5,0,0" Click="removeCardButton_Click"/>
</Grid>
<Grid x:Name="gridGoldenEpic" Grid.Column="3" HorizontalAlignment="Center" Height="61" Grid.Row="6" VerticalAlignment="Center" Width="188">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="42*"/>
<ColumnDefinition Width="5*"/>
<ColumnDefinition Width="47*"/>
</Grid.ColumnDefinitions>
<Button Content="+" HorizontalAlignment="Center" Margin="10,10,0,10" VerticalAlignment="Center" Width="74" Height="41" FontSize="32" Padding="0,-8,0,0" VerticalContentAlignment="Center" UseLayoutRounding="True" Click="addCardButton_Click"/>
<Button Content="-" Grid.Column="2" HorizontalAlignment="Center" Margin="10" VerticalAlignment="Center" Width="74" Height="41" FontSize="32" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Padding="0,-5,0,0" Click="removeCardButton_Click"/>
</Grid>
<Grid x:Name="gridGoldenLegendary" Grid.Column="4" HorizontalAlignment="Center" Height="61" Grid.Row="6" VerticalAlignment="Center" Width="188">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="42*"/>
<ColumnDefinition Width="5*"/>
<ColumnDefinition Width="47*"/>
</Grid.ColumnDefinitions>
<Button Content="+" HorizontalAlignment="Center" Margin="10,10,0,10" VerticalAlignment="Center" Width="74" Height="41" FontSize="32" Padding="0,-8,0,0" VerticalContentAlignment="Center" UseLayoutRounding="True" Click="addCardButton_Click"/>
<Button Content="-" Grid.Column="2" HorizontalAlignment="Center" Margin="10" VerticalAlignment="Center" Width="74" Height="41" FontSize="32" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Padding="0,-5,0,0" Click="removeCardButton_Click"/>
</Grid>
</Grid>
</mah:MetroWindow>