source: trunk/PKCS1/WpfControls/Components/SigGenBleichenbControl.xaml @ 1650

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

initial commit of PKCS1 Plugin

File size: 5.8 KB
Line 
1<UserControl x:Class="PKCS1.WpfControls.Components.SigGenBleichenbControl"
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="*" />
9        </Grid.RowDefinitions>
10        <!-- Generate Signature -->
11        <GroupBox Header="Signatur generieren" Name="gbSigGen" Grid.Row="0">
12            <Grid>
13                <Grid.ColumnDefinitions>
14                    <ColumnDefinition Width="auto" />
15                    <ColumnDefinition Width="auto" />
16                    <ColumnDefinition Width="*" />
17                </Grid.ColumnDefinitions>
18                <!-- left -->
19                <Grid Grid.Column="0">
20                    <Grid.RowDefinitions>
21                        <RowDefinition Height="auto" />
22                        <RowDefinition Height="auto" />
23                        <RowDefinition Height="auto" />
24                    </Grid.RowDefinitions>
25                    <Label Grid.Row="0" Name="lblRsaKeySize" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">RSA-Schlüsselgröße (in Bit):</Label>
26                    <Label Grid.Row="1" Name="lblPublicKey" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">Öffentlicher Schlüssel:</Label>
27                    <Label Grid.Row="2" Name="lblDataBlockPos" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">Bitposition des Datenblocks:</Label>
28                </Grid>
29                <!-- middle -->
30                <Grid Grid.Column="1">
31                    <Grid.RowDefinitions>
32                        <RowDefinition Height="auto" />
33                        <RowDefinition Height="auto" />
34                        <RowDefinition Height="auto" />
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                    <ComboBox Grid.Row="2" Name="cbPosDataBlock" IsEditable="False" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top" MinWidth="50" MaxWidth="150" SelectionChanged="cbPosDataBlock_SelectionChanged"></ComboBox>
39                </Grid>
40                <!-- right -->
41                <Grid Grid.Column="2">
42                    <Grid.RowDefinitions>
43                        <RowDefinition Height="auto" />
44                        <RowDefinition Height="*" />                       
45                    </Grid.RowDefinitions>
46                    <GroupBox Grid.Row="0" Header="Struktur" Name="gbStruct" Height="40" Width="190" HorizontalAlignment="Right" VerticalAlignment="Top">
47                        <Grid>
48                            <Grid.ColumnDefinitions>
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                                <ColumnDefinition Width="auto" />
56                            </Grid.ColumnDefinitions>
57                            <Label Grid.Column="0">'00'</Label>
58                            <Label Grid.Column="1">'01'</Label>
59                            <Label Grid.Column="2" Foreground="Green">PS</Label>
60                            <Label Grid.Column="3">'00'</Label>
61                            <Label Grid.Column="4" Foreground="Blue">HI</Label>
62                            <Label Grid.Column="5" Foreground="Red">HW</Label>
63                            <Label Grid.Column="6">GG</Label>
64                        </Grid>
65                    </GroupBox>
66                    <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>
67                </Grid>
68            </Grid>
69        </GroupBox>
70
71        <!-- Result -->
72        <GroupBox Header="Generierte Signatur" Name="gbSigRes" Grid.Row="1" Margin="0,15,0,0">
73            <Grid>
74                <Grid.RowDefinitions >
75                    <RowDefinition Height="auto" />
76                    <RowDefinition Height="*" />
77                    <RowDefinition Height="auto" />
78                    <RowDefinition Height="*" />
79                </Grid.RowDefinitions>
80                <Label Grid.Row="0" Margin="0,0,0,0" Name="lblClearText">Unverschlüsselt</Label>
81                <Label Grid.Row="0" Margin="150,0,0,0" Name="lblSignatureLength"></Label>
82                <RichTextBox Grid.Row="1" Name="rtbResult" MaxWidth="400" MinHeight="80" IsReadOnly="True" Margin="5,5,5,5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextChanged="rtbResult_TextChanged"></RichTextBox>
83                <Label Grid.Row="2" Margin="0,0,0,0" Name="lblCipherText">Verschlüsselt</Label>
84                <Label Grid.Row="2" Margin="150,0,0,0" Name="lblEncryptedSignatureLength"></Label>
85                <TextBox Grid.Row="3" Name="tbResultEncrypted" TextWrapping="Wrap" MaxWidth="400" MinHeight="80" IsReadOnly="True" Margin="5,5,5,5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextChanged="tbResultEncrypted_TextChanged"></TextBox>
86            </Grid>
87        </GroupBox>
88    </Grid>
89</UserControl>
Note: See TracBrowser for help on using the repository browser.