source: trunk/PKCS1/WpfControls/Components/SigGenKuehnControl.xaml @ 1742

Last change on this file since 1742 was 1742, checked in by schomburg, 11 years ago

fixed some bugs
enhanced the GUI
file input possible now

File size: 5.6 KB
Line 
1<UserControl x:Class="PKCS1.WpfControls.Components.SigGenKuehnControl"
2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4    VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
5    <Grid>
6        <Grid.RowDefinitions>
7            <RowDefinition Height="auto" />
8            <RowDefinition Height="auto" />
9            <RowDefinition Height="*" />
10        </Grid.RowDefinitions>
11        <!-- Generate Signature -->
12        <GroupBox Header="Signatur generieren" Name="gbSigGen" Grid.Row="0">
13            <Grid>
14                <Grid.ColumnDefinitions>
15                    <ColumnDefinition Width="auto" />
16                    <ColumnDefinition Width="auto" />
17                    <ColumnDefinition Width="*" />
18                </Grid.ColumnDefinitions>
19                <!-- left -->
20                <Grid Grid.Column="0">
21                    <Grid.RowDefinitions>
22                        <RowDefinition Height="auto" />
23                        <RowDefinition Height="auto" />
24                        <RowDefinition Height="auto" />
25                    </Grid.RowDefinitions>
26                    <Label Grid.Row="0" Name="lblRsaKeySize" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">RSA-Schlüsselgröße (in Bit):</Label>
27                    <Label Grid.Row="1" Name="lblPublicKey" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">Öffentlicher Schlüssel:</Label>
28                </Grid>
29                <!-- middle -->
30                <Grid Grid.Column="1">
31                    <Grid.RowDefinitions>
32                        <RowDefinition Height="auto" />
33                        <RowDefinition Height="auto" />
34                        <RowDefinition Height="*" />
35                    </Grid.RowDefinitions>
36                    <Label Grid.Row="0" Name="lblRsaKeySizeRes" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top" MinWidth="50" MaxWidth="150"></Label>
37                    <Label Grid.Row="1" Name="lblPublicKeyRes" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top" MinWidth="50" MaxWidth="150"></Label>
38                </Grid>
39                <!-- right -->
40                <Grid Grid.Column="2">
41                    <Grid.RowDefinitions>
42                        <RowDefinition Height="auto" />
43                        <RowDefinition Height="*" />
44                    </Grid.RowDefinitions>
45                    <GroupBox Grid.Row="0" Header="Struktur" Name="gbStruct" Height="47" Width="200" HorizontalAlignment="Right" VerticalAlignment="Top">
46                        <Grid>
47                            <Grid.ColumnDefinitions>
48                                <ColumnDefinition Width="auto" />
49                                <ColumnDefinition Width="auto" />
50                                <ColumnDefinition Width="auto" />
51                                <ColumnDefinition Width="auto" />
52                                <ColumnDefinition Width="auto" />
53                                <ColumnDefinition Width="auto" />
54                                <ColumnDefinition Width="auto" />
55                            </Grid.ColumnDefinitions>
56                            <Label Grid.Column="0">'00'</Label>
57                            <Label Grid.Column="1">'01'</Label>
58                            <Label Grid.Column="2" Foreground="Green">PS</Label>
59                            <Label Grid.Column="3">'00'</Label>
60                            <Label Grid.Column="4" Foreground="Blue">HI</Label>
61                            <Label Grid.Column="5" Foreground="Red">HW</Label>
62                            <Label Grid.Column="6">GG</Label>
63                        </Grid>
64                    </GroupBox>
65                    <Button Grid.Row="1" Name="bExecute" Margin="5,5,5,5" Click="bExecute_Click" Height="25" HorizontalAlignment="Right" VerticalAlignment="Bottom" MinWidth="100">Gefälschte Signatur generieren</Button>
66                </Grid>
67            </Grid>
68        </GroupBox>
69
70        <!-- Error -->
71        <TextBlock Grid.Row="1" Foreground="Red" FontWeight="Bold" FontSize="10" Name="tbError"></TextBlock>
72       
73        <!-- Result -->
74        <GroupBox Header="Generierte Signatur" Name="gbSigRes" Grid.Row="2" Margin="0,15,0,0">
75            <Grid>
76                <Grid.RowDefinitions >
77                    <RowDefinition Height="auto" />
78                    <RowDefinition Height="*" />
79                    <RowDefinition Height="auto" />
80                    <RowDefinition Height="*" />
81                </Grid.RowDefinitions>
82                <Label Grid.Row="0" Margin="0,0,0,0" Name="lblClearText">Unverschlüsselt</Label>
83                <Label Grid.Row="0" Margin="150,0,0,0" Name="lblSignatureLength"></Label>
84                <RichTextBox Grid.Row="1" Name="rtbResult" MinHeight="80" IsReadOnly="True" Margin="5,5,5,5" MaxWidth="450" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" TextChanged="rtbResult_TextChanged"></RichTextBox>
85                <Label Grid.Row="2" Margin="0,0,0,0" Name="lblCipherText">Verschlüsselt</Label>
86                <Label Grid.Row="2" Margin="150,0,0,0" Name="lblEncryptedSignatureLength"></Label>
87                <TextBox Grid.Row="3" Name="tbResultEncrypted" TextWrapping="Wrap" MinHeight="80" IsReadOnly="True" Margin="5,5,5,5" MaxWidth="450" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" TextChanged="tbResultEncrypted_TextChanged"></TextBox>
88            </Grid>
89        </GroupBox>
90    </Grid>
91</UserControl>
Note: See TracBrowser for help on using the repository browser.