-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainWindow.xaml
101 lines (101 loc) · 5.06 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
<Window x:Class="EncryptionTester.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Encryption Test" Height="450" Width="525">
<Window.Resources>
<ResourceDictionary>
<LinearGradientBrush x:Key="bkrndBrush" StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="White" Offset="0"></GradientStop>
<GradientStop Color="WhiteSmoke" Offset=".5"></GradientStop>
<GradientStop Color="AntiqueWhite" Offset="1"></GradientStop>
</LinearGradientBrush>
</ResourceDictionary>
</Window.Resources>
<Grid Background="{StaticResource bkrndBrush}">
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height=".5*" />
<RowDefinition Height="auto" />
<RowDefinition Height=".5*" />
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width=".5*" />
<ColumnDefinition Width=".5*" />
</Grid.ColumnDefinitions>
<RadioButton GroupName="EncType" Name="rdFile" Grid.Column="1">Encrypt Files</RadioButton>
<RadioButton GroupName="EncType" Name="rdText" Grid.Column="0" IsChecked="True">Encrypt Text</RadioButton>
</Grid>
<Grid Margin="10" Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height=".5*" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height=".5*" />
</Grid.RowDefinitions>
<Label>ASymmetric Encryption</Label>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width=".5*" />
</Grid.ColumnDefinitions>
<Label>Convert Text Using:</Label>
<ComboBox Name="cmbASym" Grid.Column="1" ItemsSource="{Binding }"></ComboBox>
</Grid>
<Label Grid.Row="2">Input:</Label>
<TextBox Grid.Row="3" Name="AsymInput"></TextBox>
<Grid Grid.Row="3" HorizontalAlignment="Stretch" Visibility="Hidden" Name="stckAsym">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width=".5*" />
</Grid.ColumnDefinitions>
<Button Name="btnAsymUp">Select File</Button>
<TextBox Grid.Column="1" IsReadOnly="True" Name="txtAsymFile" HorizontalAlignment="Stretch"></TextBox>
</Grid>
<Button Name="btnConvertAsym" Grid.Row="4" Click="btnConvertAsym_Click">Convert</Button>
<Label Grid.Row="5">Output Text:</Label>
<TextBox Grid.Row="6" Name="asymOutput" IsReadOnly="True"></TextBox>
</Grid>
<Grid Height="1" Grid.Row="2" Background="Black"></Grid>
<Grid Grid.Row="3" Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height=".5*" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height=".5*" />
</Grid.RowDefinitions>
<Label>Symmetric Encryption</Label>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width=".5*" />
<ColumnDefinition Width="auto" />
<ColumnDefinition Width=".5*" />
</Grid.ColumnDefinitions>
<Label>Convert Text Using:</Label>
<ComboBox Name="cmbSym" Grid.Column="1" ItemsSource="{Binding }"></ComboBox>
<Label Grid.Column="2">Encryption Password:</Label>
<TextBox Name="txtPass" Grid.Column="3">test password</TextBox>
</Grid>
<Label Grid.Row="2">Input:</Label>
<TextBox Grid.Row="3" Name="symInput"></TextBox>
<Grid Grid.Row="3" HorizontalAlignment="Stretch" Visibility="Hidden" Name="stckSym">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width=".5*" />
</Grid.ColumnDefinitions>
<Button Name="btnSymUp">Select File</Button>
<TextBox Grid.Column="1" IsReadOnly="True" Name="txtSymFile"></TextBox>
</Grid>
<Button Name="btnConvertSym" Grid.Row="4" Click="btnConvertSym_Click">Convert</Button>
<Label Grid.Row="5">Output Text:</Label>
<TextBox Grid.Row="6" Name="symOutput" IsReadOnly="True"></TextBox>
</Grid>
</Grid>
</Window>