-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDuplicateForm.xaml
267 lines (263 loc) · 17.8 KB
/
DuplicateForm.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Duplicate found" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Height="601" Width="450" WindowStyle="SingleBorderWindow" ResizeMode="NoResize" Topmost="True" WindowStartupLocation="CenterOwner">
<Window.Resources>
<!-- Hover Brushes -->
<!-- This stuff to make the buttons look right was borrowed from http://blog.codenaked.com/post/2011/03/31/WPF-and-Windows-7-Theme.aspx -->
<LinearGradientBrush x:Key="HoverBackgroundBrushKey"
StartPoint="0,0"
EndPoint="0,1">
<GradientStop Color="#FCFCFC"
Offset="0" />
<GradientStop Color="#EBF3FD"
Offset="1" />
</LinearGradientBrush>
<SolidColorBrush x:Key="HoverOuterBorderBrushKey"
Color="#B8D6FB" />
<SolidColorBrush x:Key="HoverInnerBorderBrushKey"
Color="#F2F7FE" />
<!-- Selected (Active) Brushes -->
<LinearGradientBrush x:Key="SelectedActiveBackgroundBrushKey"
StartPoint="0,0"
EndPoint="0,1">
<GradientStop Color="#DCEBFC"
Offset="0" />
<GradientStop Color="#C1DBFC"
Offset="1" />
</LinearGradientBrush>
<SolidColorBrush x:Key="SelectedActiveOuterBorderBrushKey"
Color="#7DA2CE" />
<SolidColorBrush x:Key="SelectedActiveInnerBorderBrushKey"
Color="#EBF4FD" />
<!-- Selected (Inactive) Brushes -->
<LinearGradientBrush x:Key="SelectedInactiveBackgroundBrushKey"
StartPoint="0,0"
EndPoint="0,1">
<GradientStop Color="#F8F8F8"
Offset="0" />
<GradientStop Color="#E5E5E5"
Offset="1" />
</LinearGradientBrush>
<SolidColorBrush x:Key="SelectedInactiveOuterBorderBrushKey"
Color="#D9D9D9" />
<SolidColorBrush x:Key="SelectedInactiveInnerBorderBrushKey"
Color="#F0F0F0" />
<Style x:Key="BigButton" TargetType="{x:Type Button}">
<Setter Property="BorderThickness"
Value="1" />
<Setter Property="Padding"
Value="2,0" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Border x:Name="outerBorder"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="2"
SnapsToDevicePixels="true">
<Border x:Name="innerBorder"
Background="{TemplateBinding Background}"
BorderThickness="1"
CornerRadius="1"
Padding="{TemplateBinding Padding}"
SnapsToDevicePixels="true">
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
</Border>
</Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver"
Value="true">
<Setter TargetName="outerBorder"
Property="BorderBrush"
Value="{StaticResource HoverOuterBorderBrushKey}" />
<Setter TargetName="innerBorder"
Property="Background"
Value="{StaticResource HoverBackgroundBrushKey}" />
<Setter TargetName="innerBorder"
Property="BorderBrush"
Value="{StaticResource HoverInnerBorderBrushKey}" />
</Trigger>
<Trigger Property="IsPressed"
Value="true">
<Setter TargetName="outerBorder"
Property="BorderBrush"
Value="{StaticResource SelectedActiveOuterBorderBrushKey}" />
<Setter TargetName="innerBorder"
Property="Background"
Value="{StaticResource SelectedActiveBackgroundBrushKey}" />
<Setter TargetName="innerBorder"
Property="BorderBrush"
Value="{StaticResource SelectedActiveInnerBorderBrushKey}" />
</Trigger>
<Trigger Property="IsEnabled"
Value="false">
<Setter Property="Foreground"
Value="Transparent" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid Height="558">
<Label Content="There is already a file with the same name in this location" Height="31" HorizontalAlignment="Left" Margin="12,0,0,0" VerticalAlignment="Top" FontSize="16" Foreground="Navy" />
<Button x:Name="ReplaceButton" Margin="12,50,12,0" VerticalAlignment="Top" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Style="{StaticResource ResourceKey=BigButton}">
<Grid Height="Auto" Width="Auto">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="20" />
<RowDefinition Height="20" />
<RowDefinition Height="20" />
<RowDefinition Height="20" />
<RowDefinition Height="20" />
<RowDefinition Height="20" />
<RowDefinition Height="20" />
<RowDefinition Height="20" />
<RowDefinition Height="15*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2" />
<ColumnDefinition Width="112" />
<ColumnDefinition Width="85" />
<ColumnDefinition Width="85" />
<ColumnDefinition Width="110" />
<ColumnDefinition Width="2*" />
</Grid.ColumnDefinitions>
<StackPanel Orientation="Horizontal" Grid.ColumnSpan="5">
<Image Name="Arrow1" Height="20" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="21" Source="C:\Users\Andrew\Documents\ComicRack Scripts stuff\Test WPF\WpfApplication1\arrow.png" />
<Label Name="MoveHeader" Content="Move and Replace" HorizontalAlignment="Left" FontSize="18" Foreground="Navy" Padding="0" />
</StackPanel>
<Label Name="MoveText" Content="Replace the file in the destination folder with the file you are moving:" Padding="0" HorizontalAlignment="Left" Margin="15,0,0,0" VerticalAlignment="Center" Foreground="Navy" Grid.ColumnSpan="4" Grid.Column="1" Grid.Row="1" />
<StackPanel Grid.Column="2" Grid.Row="2" Orientation="Horizontal" Grid.ColumnSpan="3" >
<Label Content="Series:" HorizontalAlignment="Left" Foreground="Navy" Grid.Row="1" Padding="2"/>
<Label Name="NewSeries" Content="Series name is long" HorizontalAlignment="Stretch" Padding="2" />
</StackPanel>
<StackPanel Grid.Column="2" Grid.Row="3" Orientation="Horizontal" >
<Label Content="Number:" Foreground="Navy" Padding="2" />
<Label Name="NewNumber" Content="Series" Padding="2" HorizontalAlignment="Stretch"/>
</StackPanel>
<StackPanel Grid.Column="3" Grid.Row="3" Orientation="Horizontal" >
<Label Content="Volume:" Foreground="Navy" Padding="2"/>
<Label Name="NewVolume" Content="Volume" Padding="2" VerticalAlignment="Stretch"/>
</StackPanel>
<StackPanel Grid.Column="4" Grid.Row="3" Orientation="Horizontal" >
<Label Content="Pages:" Foreground="Navy" Padding="2" />
<Label Name="NewPages" Content="Series" Height="20" HorizontalAlignment="Stretch" Padding="2" />
</StackPanel>
<StackPanel Grid.Column="2" Grid.Row="4" Grid.ColumnSpan="2" Orientation="Horizontal" >
<Label Content="Published Date:" Foreground="Navy" HorizontalAlignment="Left" Padding="2" VerticalAlignment="Top" />
<Label Name="NewPublishedDate" Content="Series" HorizontalAlignment="Stretch" Padding="2" />
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="4">
<Label Content="File size:" Foreground="Navy" HorizontalAlignment="Left" Padding="2" />
<Label Name="NewFileSize" Content="Series" HorizontalAlignment="Stretch" Padding="2" />
</StackPanel>
<StackPanel Grid.Column="2" Grid.Row="5" Grid.ColumnSpan="3" Orientation="Horizontal" >
<Label Content="Added to Library:" Foreground="Navy" HorizontalAlignment="Left" Padding="2" />
<Label Name="NewAddedDate" Content="Added to library" Height="20" HorizontalAlignment="Left" Padding="2" />
</StackPanel>
<StackPanel Grid.Column="2" Grid.Row="6" Grid.ColumnSpan="3" Orientation="Horizontal" >
<Label Content="Scan Information:" Foreground="Navy" HorizontalAlignment="Left" Padding="2" />
<Label Name="NewScanInfo" Content="Scan Information" Height="20" HorizontalAlignment="Left" Padding="2" />
</StackPanel>
<StackPanel Grid.Column="2" Grid.Row="7" Grid.ColumnSpan="3" Grid.RowSpan="3" Orientation="Horizontal" >
<Label Content="Path:" Foreground="Navy" Height="Auto" HorizontalAlignment="Left" Padding="2" VerticalAlignment="Top" />
<TextBlock Name="NewPath" FontSize="10" TextWrapping="Wrap" Padding="2" Width="248">File Path</TextBlock>
</StackPanel>
<Image Name="NewCover" Grid.Row="2" Grid.RowSpan="6" Height="113" HorizontalAlignment="Center" Stretch="Uniform" VerticalAlignment="Center" Width="97" Margin="15,7,0,0" Grid.Column="1" />
</Grid>
</Button>
<Button x:Name="CancelButton" Margin="12,255,12,0" VerticalAlignment="Top" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Style="{StaticResource ResourceKey=BigButton}">
<Grid Height="Auto" Width="Auto">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="20" />
<RowDefinition Height="20" />
<RowDefinition Height="20" />
<RowDefinition Height="20" />
<RowDefinition Height="20" />
<RowDefinition Height="20" />
<RowDefinition Height="20" />
<RowDefinition Height="20" />
<RowDefinition Height="15*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2" />
<ColumnDefinition Width="112" />
<ColumnDefinition Width="85" />
<ColumnDefinition Width="85" />
<ColumnDefinition Width="110" />
<ColumnDefinition Width="2*" />
</Grid.ColumnDefinitions>
<StackPanel Orientation="Horizontal" Grid.ColumnSpan="5" Grid.Row="0">
<Image Name="Arrow2" Height="20" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="21" Source="C:\Users\Andrew\Documents\ComicRack Scripts stuff\Test WPF\WpfApplication1\arrow.png" />
<Label Name="DontMoveHeader" Content="Don't Move" HorizontalAlignment="Left" FontSize="18" Foreground="Navy" Padding="0" />
</StackPanel>
<Label Name="DontMoveText" Content="No files will be changed. Leave this file in the destination folder:" HorizontalAlignment="Left" VerticalAlignment="Top" Foreground="Navy" Grid.ColumnSpan="4" Grid.Column="1" Grid.Row="1" Padding="0" Margin="15, 0, 0, 0" />
<StackPanel Grid.Column="2" Grid.Row="2" Orientation="Horizontal" Grid.ColumnSpan="3">
<Label Content="Series:" HorizontalAlignment="Left" Foreground="Navy" Grid.Row="1" Padding="2"/>
<Label Name="OldSeries" HorizontalAlignment="Stretch" Padding="2" />
</StackPanel>
<StackPanel Grid.Column="2" Grid.Row="3" Orientation="Horizontal">
<Label Content="Number:" Foreground="Navy" Padding="2" />
<Label Name="OldNumber" Padding="2" HorizontalAlignment="Stretch"/>
</StackPanel>
<StackPanel Grid.Column="3" Grid.Row="3" Orientation="Horizontal">
<Label Content="Volume:" Foreground="Navy" Padding="2"/>
<Label Name="OldVolume" Padding="2" VerticalAlignment="Stretch"/>
</StackPanel>
<StackPanel Grid.Column="4" Grid.Row="3" Orientation="Horizontal">
<Label Content="Pages:" Foreground="Navy" Padding="2" />
<Label Name="OldPages" Height="20" HorizontalAlignment="Stretch" Padding="2" />
</StackPanel>
<StackPanel Grid.Column="4" Grid.Row="4" Orientation="Horizontal">
<Label Content="File size:" Foreground="Navy" HorizontalAlignment="Left" Padding="2" />
<Label Name="OldFileSize" HorizontalAlignment="Stretch" Padding="2" />
</StackPanel>
<StackPanel Grid.Column="2" Grid.Row="4" Grid.ColumnSpan="2" Orientation="Horizontal">
<Label Content="Published Date:" Foreground="Navy" HorizontalAlignment="Left" Padding="2" VerticalAlignment="Top" />
<Label Name="OldPublishedDate" HorizontalAlignment="Stretch" Padding="2" />
</StackPanel>
<StackPanel Grid.Column="2" Grid.Row="5" Grid.ColumnSpan="3" Orientation="Horizontal">
<Label Content="Added to Library:" Foreground="Navy" HorizontalAlignment="Left" Padding="2" />
<Label Name="OldAddedDate" Height="20" HorizontalAlignment="Left" Padding="2" />
</StackPanel>
<StackPanel Grid.Column="2" Grid.Row="6" Grid.ColumnSpan="3" Orientation="Horizontal">
<Label Content="Scan Information:" Foreground="Navy" HorizontalAlignment="Left" Padding="2" />
<Label Name="OldScanInfo" Height="20" HorizontalAlignment="Left" Padding="2" />
</StackPanel>
<StackPanel Grid.Column="2" Grid.Row="7" Grid.ColumnSpan="3" Grid.RowSpan="3" Orientation="Horizontal">
<Label Content="Path:" Foreground="Navy" Height="Auto" HorizontalAlignment="Left" Padding="2" VerticalAlignment="Top" />
<TextBlock Name="OldPath" TextWrapping="Wrap" FontSize="10" HorizontalAlignment="Left" Padding="2" VerticalAlignment="Top" Height="59" Width="247" />
</StackPanel>
<Image Name="OldCover" Grid.Row="2" Grid.RowSpan="6" Height="113" HorizontalAlignment="Center" Stretch="Uniform" VerticalAlignment="Center" Width="97" Margin="15,7,0,0" Grid.Column="1" />
</Grid>
</Button>
<Button x:Name="RenameButton" Margin="12,460,12,0" VerticalAlignment="Top" HorizontalAlignment="Stretch" Height="70" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Style="{StaticResource ResourceKey=BigButton}">
<Grid Height="69" Width="Auto">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="39*" />
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Grid.Row="0">
<Image Name="Arrow3" Height="20" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="21" Source="C:\Users\Andrew\Documents\ComicRack Scripts stuff\Test WPF\WpfApplication1\arrow.png" />
<Label Name="RenameHeader" Content="Move, but keep both files" HorizontalAlignment="Left" VerticalAlignment="Top" Padding="0" FontSize="18" Foreground="Navy" />
</StackPanel>
<TextBlock Name="RenameText" Padding="0" TextWrapping="Wrap" Text='The file you are moving will be renamed: ' HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Top" Width="376" Foreground="Navy" Grid.Row="1" Height="43" />
</Grid>
</Button>
<Button Name="Cancel" Content="Cancel" Height="23" HorizontalAlignment="Left" Margin="338,535,0,0" VerticalAlignment="Top" Width="75" />
<Label Name="Subtitle" Content="Click the file you want to keep" Height="28" HorizontalAlignment="Left" Margin="12,22,0,0" VerticalAlignment="Top" />
<CheckBox Name="DoAll" Content="Do this for all conficts" Height="16" HorizontalAlignment="Left" Margin="16,539,0,0" VerticalAlignment="Top" />
</Grid>
</Window>