-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
170 lines (124 loc) · 11.7 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<adonisControls:AdonisWindow
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:local="clr-namespace:RenameTool_3"
xmlns:adonisExtensions="clr-namespace:AdonisUI.Extensions;assembly=AdonisUI"
xmlns:adonisUi="clr-namespace:AdonisUI;assembly=AdonisUI"
xmlns:adonisControls="clr-namespace:AdonisUI.Controls;assembly=AdonisUI" xmlns:av="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Width="1280" Height="720" mc:Ignorable="av" x:Class="RenameTool_3.MainWindow"
Title="RenameTool3"
SizeToContent="Manual" Background="{DynamicResource {x:Static adonisUi:Brushes.Layer2BackgroundBrush}}">
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0" Background="Black"
Grid.ColumnSpan="2">
</Grid>
<StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" >
<Button Click="openFolder" Margin="10" Height="27" Width="28" BorderBrush="{x:Null}" Foreground="{x:Null}" >
<Button.OpacityMask>
<ImageBrush ImageSource="/folder_file_icon.png"/>
</Button.OpacityMask>
<Button.Background>
<ImageBrush ImageSource="/folder_file_icon.png" Stretch="UniformToFill"/>
</Button.Background>
</Button>
<Button FontSize="10" Content="Info" Width="50" Height="20" Margin="10"
Style="{DynamicResource {x:Static adonisUi:Styles.AccentButton}}" Background="{DynamicResource {x:Static adonisUi:Brushes.Layer3BackgroundBrush}}"
BorderBrush="{DynamicResource {x:Static adonisUi:Brushes.Layer3BorderBrush}}" adonisExtensions:RippleExtension.BackgroundBrush="Green"
adonisExtensions:RippleExtension.BorderBrush="Green" adonisExtensions:RippleExtension.ForegroundBrush="White" adonisExtensions:CornerRadiusExtension.CornerRadius="12" Click="InfoHub" />
</StackPanel>
<StackPanel Margin="30" Grid.Row="2" Grid.Column="1" Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center" >
<StackPanel >
<TextBlock Foreground="SkyBlue" FontSize="25" FontWeight="Bold" Margin="10"><Run Text="Option"/><Run Language="de-ch" Text="en"/></TextBlock>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" >
<TextBlock Foreground="White" Text="Excel Data 3" FontSize="20" FontWeight="DemiBold" Margin="10"/>
<ComboBox SelectionChanged="Value3box_SelectionChanged" x:Name="Value3box" Width="200" Height="30" Margin="10"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Foreground="White" Text="File Typ" FontSize="20" FontWeight="DemiBold" Margin="10"/>
<ComboBox SelectionChanged="Datatypebox_SelectionChanged" x:Name="Datatypebox" Width="200" Height="30" Margin="52,0,10,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" >
<TextBlock Foreground="White" Text="Save Path" FontSize="20" FontWeight="DemiBold" Margin="10"/>
<TextBox IsReadOnly="True" ToolTip="Speicher Ort ändern" x:Name="safepathbox" Foreground="White" Width="200" Height="30" Margin="34,0,10,0"/>
<Button x:Name="Savepathbutton" ToolTip="Speicher Ort ändern" Click="SavePath" Content="Browse" Width="100" Height="30" Margin="10"
Style="{DynamicResource {x:Static adonisUi:Styles.AccentButton}}" Background="{DynamicResource {x:Static adonisUi:Brushes.Layer3BackgroundBrush}}"
BorderBrush="{DynamicResource {x:Static adonisUi:Brushes.Layer3BorderBrush}}" adonisExtensions:RippleExtension.BackgroundBrush="Green"
adonisExtensions:RippleExtension.BorderBrush="Green" adonisExtensions:RippleExtension.ForegroundBrush="White" adonisExtensions:CornerRadiusExtension.CornerRadius="12" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Foreground="White" Text="PDF Split" FontSize="20" FontWeight="DemiBold" Margin="10"/>
<ComboBox ToolTip="Ab wie viel Seiten gesplittet werden soll" x:Name="cutbox" Width="200" Height="30" Margin="38,0,10,0" SelectionChanged="cutbox_SelectionChanged"/>
<Button Content="PDF" Width="100" Height="30" Margin="10"
Style="{DynamicResource {x:Static adonisUi:Styles.AccentButton}}" Background="{DynamicResource {x:Static adonisUi:Brushes.Layer3BackgroundBrush}}"
BorderBrush="{DynamicResource {x:Static adonisUi:Brushes.Layer3BorderBrush}}" adonisExtensions:RippleExtension.BackgroundBrush="Green"
adonisExtensions:RippleExtension.BorderBrush="Green" adonisExtensions:RippleExtension.ForegroundBrush="White" adonisExtensions:CornerRadiusExtension.CornerRadius="12" Click="SplitPDF"/>
</StackPanel>
<StackPanel Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" >
<Rectangle Margin="10,30,10,10" />
</StackPanel>
</StackPanel >
<StackPanel Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" Orientation="Horizontal" >
<Button FontSize="10" Click="ShowData" Content="Show data" Width="100" Height="20" Margin="10"
Style="{DynamicResource {x:Static adonisUi:Styles.AccentButton}}" Background="{DynamicResource {x:Static adonisUi:Brushes.Layer3BackgroundBrush}}"
BorderBrush="{DynamicResource {x:Static adonisUi:Brushes.Layer3BorderBrush}}" adonisExtensions:RippleExtension.BackgroundBrush="Green"
adonisExtensions:RippleExtension.BorderBrush="Green" adonisExtensions:RippleExtension.ForegroundBrush="White" adonisExtensions:CornerRadiusExtension.CornerRadius="12" />
<TextBlock x:Name="Example" Foreground="White" Text="Value1 Value2 Value3 Custom.PDF" FontSize="15" FontWeight="Bold" Margin="10,13,10,10"/>
</StackPanel>
<StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right" >
</StackPanel>
<StackPanel Margin="30" Grid.Row="2" Grid.Column="0" Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Center">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" >
<TextBlock Foreground="White" Text="Excel File" FontSize="20" FontWeight="DemiBold" Margin="10"/>
<TextBox IsReadOnly="True" x:Name="excelpathbox" Foreground="White" Width="200" Height="30" Margin="38,0,10,0"/>
<Button Content="Browse" Width="100" Height="30" Margin="10"
Style="{DynamicResource {x:Static adonisUi:Styles.AccentButton}}" Background="{DynamicResource {x:Static adonisUi:Brushes.Layer3BackgroundBrush}}"
BorderBrush="{DynamicResource {x:Static adonisUi:Brushes.Layer3BorderBrush}}" adonisExtensions:RippleExtension.BackgroundBrush="Green"
adonisExtensions:RippleExtension.BorderBrush="Green" adonisExtensions:RippleExtension.ForegroundBrush="White" adonisExtensions:CornerRadiusExtension.CornerRadius="12" Click="LoadExcel"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock Foreground="White" Text="Worksheet" FontSize="20" FontWeight="DemiBold" Margin="10"/>
<ComboBox SelectionChanged="Worksheetbox_SelectionChanged" x:Name="Worksheetbox" Width="200" Height="30" Margin="23,0,10,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" >
<TextBlock Foreground="White" Text="Excel Data 1" FontSize="20" FontWeight="DemiBold" Margin="10"/>
<ComboBox SelectionChanged="Value1box_SelectionChanged" x:Name="Value1box" Width="200" Height="30" Margin="13,10,10,10"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" >
<TextBlock Foreground="White" Text="Excel Data 2" FontSize="20" FontWeight="DemiBold" Margin="10"/>
<ComboBox SelectionChanged="Value2box_SelectionChanged" x:Name="Value2box" Width="200" Height="30" Margin="10"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" >
<TextBlock Foreground="White" Text="Custom" FontSize="20" FontWeight="DemiBold" Margin="10"/>
<TextBox ToolTip="Optional: Zusatz Text eingeben" adonisExtensions:WatermarkExtension.Watermark="Text eingeben ..." TextChanged="CustomTextbox_TextChanged" x:Name="CustomTextbox" Margin="52,0,10,0" Width="200" Height="30" />
<Button x:Name="SetCustomTextbutton" Content="Set" Width="100" Height="30" Margin="10"
Style="{DynamicResource {x:Static adonisUi:Styles.AccentButton}}" Background="{DynamicResource {x:Static adonisUi:Brushes.Layer3BackgroundBrush}}"
BorderBrush="{DynamicResource {x:Static adonisUi:Brushes.Layer3BorderBrush}}" adonisExtensions:RippleExtension.BackgroundBrush="Green"
adonisExtensions:RippleExtension.BorderBrush="Green" adonisExtensions:RippleExtension.ForegroundBrush="White" adonisExtensions:CornerRadiusExtension.CornerRadius="12" Click="SetTextButton"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" >
<TextBlock Foreground="White" Text="Target Files" FontSize="20" FontWeight="Bold" Margin="10"/>
<TextBox ToolTip="Ziel Datei oder Ordner auswählen, wenn Auto Split aktiv werden PDFs direkt gesplittet." IsReadOnly="True" x:Name="targetpathbox" Foreground="White" Width="200" Height="30" Margin="15,10,10,10"/>
<Button Content="Browse" Width="100" Height="30" Margin="10"
Style="{DynamicResource {x:Static adonisUi:Styles.AccentButton}}" Background="{DynamicResource {x:Static adonisUi:Brushes.Layer3BackgroundBrush}}"
BorderBrush="{DynamicResource {x:Static adonisUi:Brushes.Layer3BorderBrush}}" adonisExtensions:RippleExtension.BackgroundBrush="Green"
adonisExtensions:RippleExtension.BorderBrush="Green" adonisExtensions:RippleExtension.ForegroundBrush="White" adonisExtensions:CornerRadiusExtension.CornerRadius="12" Click="Targetfiles"/>
<CheckBox Checked="Splitcheckbox_Checked" Unchecked="Splitcheckbox_Unchecked" x:Name="Splitcheckbox" Content="PDF Auto Split" Margin="10"/>
</StackPanel>
<StackPanel Grid.Row="2" Grid.Column="1" HorizontalAlignment="left" >
<Button Click="RenameButton" Content="Rename" Width="100" Height="30" Margin="190,40,10,10"
Style="{DynamicResource {x:Static adonisUi:Styles.AccentButton}}" Background="{DynamicResource {x:Static adonisUi:Brushes.AccentInteractionBrush}}"
BorderBrush="{DynamicResource {x:Static adonisUi:Brushes.Layer3BorderBrush}}" adonisExtensions:RippleExtension.BackgroundBrush="Green"
adonisExtensions:RippleExtension.BorderBrush="Green" adonisExtensions:RippleExtension.ForegroundBrush="White" adonisExtensions:CornerRadiusExtension.CornerRadius="12" />
</StackPanel>
</StackPanel>
</Grid>
</adonisControls:AdonisWindow>