-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAESWindow.xaml
More file actions
160 lines (145 loc) · 10.1 KB
/
AESWindow.xaml
File metadata and controls
160 lines (145 loc) · 10.1 KB
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
<Window x:Class="Encryptie_Tools.AESWindow"
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:Encryptie_Tools"
mc:Ignorable="d"
Title="AES" SizeToContent="WidthAndHeight" ResizeMode="CanMinimize" FontSize="18" FontFamily="Calibri">
<Grid Width="500">
<Menu>
<MenuItem Name="MenuPlainImagesStorage" Header="Plain Images Location" FontStyle="Italic" Click="MenuPlainImagesStorage_Click" Height="24"/>
<MenuItem Name="MenuEncryptedImagesStorage" Header="Encrypted Images Location" FontStyle="Italic" Click="MenuEncryptedImagesStorage_Click" Height="24"/>
<MenuItem Name="MenuDecryptedImagesStorage" Header="Decrypted Images Location" FontStyle="Italic" Click="MenuDecryptedImagesStorage_Click" Height="24"/>
</Menu>
<TabControl Margin="0 24 0 0" SelectionChanged="TabControl_SelectionChanged" >
<TabItem Header="Encrypt">
<DockPanel Margin="10" >
<Grid DockPanel.Dock="Top">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="150*"></ColumnDefinition>
<ColumnDefinition Width="150*"></ColumnDefinition>
<ColumnDefinition Width="150*"></ColumnDefinition>
<ColumnDefinition Width="150*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="100"></RowDefinition>
<RowDefinition Height="100"></RowDefinition>
<RowDefinition Height="80"></RowDefinition>
</Grid.RowDefinitions>
<GroupBox Header="Key" Grid.RowSpan="2" Grid.ColumnSpan="2" Margin="5">
<Grid Margin="0 5 0 0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="100*"></RowDefinition>
<RowDefinition Height="100*"></RowDefinition>
</Grid.RowDefinitions>
<Button Name="BtnKeyInlezenEncrypt" Height="34" Width="120" Click="BtnKeyInlezenEncrypt_Click">Read</Button>
<Label Name="LblKeyNaamEncrypt" Grid.Row="2" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Height="40" Margin="10" FontSize="20" FontFamily="Calibri" FontStyle="Italic">Key Name</Label>
</Grid>
</GroupBox>
<GroupBox Header="Image" Grid.Row="0" Grid.RowSpan="2" Grid.Column="2" Grid.ColumnSpan="2" Margin="5">
<StackPanel VerticalAlignment="Center">
<Button Name="BtnKiesImageEncrypt" Click="BtnKiesImageEncrypt_Click" Height="34" Width="140">Choose Image</Button>
<Grid Height="90" Width="160" Margin="10">
<Border Background="White" BorderBrush="LightGray" BorderThickness="1" CornerRadius="20">
<Image Name="ImgToEncrypt" Stretch="Fill"/>
</Border>
<Grid.Clip>
<RectangleGeometry RadiusX="20" RadiusY="20" Rect="0,0,160,90"/>
</Grid.Clip>
</Grid>
</StackPanel>
</GroupBox>
<GroupBox Header="Filename" Grid.Row="2" Grid.ColumnSpan="4">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100*"></ColumnDefinition>
<ColumnDefinition Width="100*"></ColumnDefinition>
<ColumnDefinition Width="100*"></ColumnDefinition>
<ColumnDefinition Width="100*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="100*"></RowDefinition>
</Grid.RowDefinitions>
<TextBox Name="TxtFileNameEncrypt" Grid.ColumnSpan="2" Margin="8 12"></TextBox>
<Button Name="BtnEncrypt" Grid.Column="2" Grid.ColumnSpan="4" Width="200" Height="34" Click="BtnEncrypt_Click">Encrypt</Button>
</Grid>
</GroupBox>
</Grid>
</DockPanel>
</TabItem>
<TabItem Header="Decrypt">
<DockPanel Margin="10">
<Grid DockPanel.Dock="Top">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="150*"></ColumnDefinition>
<ColumnDefinition Width="150*"></ColumnDefinition>
<ColumnDefinition Width="150*"></ColumnDefinition>
<ColumnDefinition Width="150*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="100"></RowDefinition>
<RowDefinition Height="100"></RowDefinition>
<RowDefinition Height="80"></RowDefinition>
<RowDefinition Height="250"></RowDefinition>
</Grid.RowDefinitions>
<GroupBox Header="Key" Grid.RowSpan="2" Grid.ColumnSpan="2" Margin="5">
<Grid Margin="0 5 0 0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="100*"></RowDefinition>
<RowDefinition Height="100*"></RowDefinition>
</Grid.RowDefinitions>
<Button Name="BtnKeyInlezenDecrypt" Height="34" Width="120" Click="BtnKeyInlezenDecrypt_Click">Read</Button>
<Label Name="LblKeyNaamDecrypt" Grid.Row="2" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="20" FontFamily="Calibri" FontStyle="Italic">Key Name</Label>
</Grid>
</GroupBox>
<GroupBox Header="Image" Grid.Row="0" Grid.RowSpan="2" Grid.Column="2" Grid.ColumnSpan="2" Margin="5">
<Grid Margin="0 5 0 0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="100*"></RowDefinition>
<RowDefinition Height="100*"></RowDefinition>
</Grid.RowDefinitions>
<Button Name="BtnKiesImageDecrypt" Height="34" Width="200" Click="BtnKiesImageDecrypt_Click">Choose Encrypted Image</Button>
<Label Name="LblEncryptedFile" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20" FontFamily="Calibri" FontStyle="Italic">.encrypted file</Label>
</Grid>
</GroupBox>
<GroupBox Header="Filename" Grid.Row="2" Grid.ColumnSpan="4">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100*"></ColumnDefinition>
<ColumnDefinition Width="100*"></ColumnDefinition>
<ColumnDefinition Width="100*"></ColumnDefinition>
<ColumnDefinition Width="100*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="100*"></RowDefinition>
</Grid.RowDefinitions>
<TextBox Name="TxtFileNameDecrypt" Grid.ColumnSpan="2" Margin="8 12"></TextBox>
<Button Name="BtnDecrypt" Grid.Column="2" Grid.ColumnSpan="4" Width="200" Height="34" Click="BtnDecrypt_Click">Decrypt</Button>
</Grid>
</GroupBox>
<GroupBox Header="Decrypted Image" Grid.Row="4" Grid.ColumnSpan="4">
<Grid Height="190" Width="440" Margin="10">
<Border Background="White" BorderBrush="LightGray" BorderThickness="1" CornerRadius="20">
<Image Name="ImgDecrypt" Stretch="Fill"/>
</Border>
<Grid.Clip>
<RectangleGeometry RadiusX="20" RadiusY="20" Rect="0,0,440,190"/>
</Grid.Clip>
</Grid>
</GroupBox>
</Grid>
</DockPanel>
</TabItem>
</TabControl>
</Grid>
</Window>