Ignore:
Timestamp:
Jul 19, 2010, 5:52:04 PM (12 years ago)
Author:
schomburg
Message:

fixed some bugs
enhanced the GUI
file input possible now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PKCS1/WpfControls/Components/SigGenKuehnControl.xaml

    r1650 r1742  
    55    <Grid>
    66        <Grid.RowDefinitions>
     7            <RowDefinition Height="auto" />
    78            <RowDefinition Height="auto" />
    89            <RowDefinition Height="*" />
     
    2425                    </Grid.RowDefinitions>
    2526                    <Label Grid.Row="0" Name="lblRsaKeySize" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">RSA-Schlüsselgröße (in Bit):</Label>
    26                     <!--<ComboBox Grid.Row="1" Name="cbRsaKeySize" Margin="5,5,5,5" HorizontalAlignment="Left" MinWidth="80" SelectionChanged="cbRsaKeySize_SelectionChanged" />-->
    2727                    <Label Grid.Row="1" Name="lblPublicKey" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">Öffentlicher Schlüssel:</Label>
    28                     <!--<Label Grid.Row="2" Name="lblPosDataBlock" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">Position des Datenblocks:</Label>-->
    2928                </Grid>
    3029                <!-- middle -->
     
    3534                        <RowDefinition Height="*" />
    3635                    </Grid.RowDefinitions>
    37                     <!--<Label Grid.Row="0" Name="lblPrivateKey" Margin="5,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top">privater Schlüssel</Label>-->
    38                     <TextBox Grid.Row="0" Name="tbRsaKeySize" IsReadOnly="True" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top" MinWidth="50" MaxWidth="150"></TextBox>
    39                     <TextBox Grid.Row="1" Name="tbPublicKey" IsReadOnly="True" Margin="5,5,5,5" HorizontalAlignment="Left" VerticalAlignment="Top" MinWidth="50" MaxWidth="150"></TextBox>
    40                     <!--<TextBox Grid.Row="2" Name="tbPosDataBlock" IsReadOnly="True" Margin="5,5,5,5" HorizontalAlignment="Left" VerticalAlignment="Top" MinWidth="50" MaxWidth="150"></TextBox>-->
     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>
    4138                </Grid>
    4239                <!-- right -->
     
    4643                        <RowDefinition Height="*" />
    4744                    </Grid.RowDefinitions>
    48                     <GroupBox Grid.Row="0" Header="Struktur" Name="gbStruct" Height="40" Width="170" HorizontalAlignment="Right" VerticalAlignment="Top">
     45                    <GroupBox Grid.Row="0" Header="Struktur" Name="gbStruct" Height="47" Width="200" HorizontalAlignment="Right" VerticalAlignment="Top">
    4946                        <Grid>
    5047                            <Grid.ColumnDefinitions>
     48                                <ColumnDefinition Width="auto" />
    5149                                <ColumnDefinition Width="auto" />
    5250                                <ColumnDefinition Width="auto" />
     
    5856                            <Label Grid.Column="0">'00'</Label>
    5957                            <Label Grid.Column="1">'01'</Label>
    60                             <Label Grid.Column="2">PS</Label>
     58                            <Label Grid.Column="2" Foreground="Green">PS</Label>
    6159                            <Label Grid.Column="3">'00'</Label>
    62                             <Label Grid.Column="4">HW</Label>
    63                             <Label Grid.Column="5">GG</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>
    6463                        </Grid>
    6564                    </GroupBox>
     
    6968        </GroupBox>
    7069
     70        <!-- Error -->
     71        <TextBlock Grid.Row="1" Foreground="Red" FontWeight="Bold" FontSize="10" Name="tbError"></TextBlock>
     72       
    7173        <!-- Result -->
    72         <GroupBox Header="Generierte Signatur" Name="gbSigRes" Grid.Row="1" Margin="0,15,0,0">
     74        <GroupBox Header="Generierte Signatur" Name="gbSigRes" Grid.Row="2" Margin="0,15,0,0">
    7375            <Grid>
    7476                <Grid.RowDefinitions >
     
    8082                <Label Grid.Row="0" Margin="0,0,0,0" Name="lblClearText">Unverschlüsselt</Label>
    8183                <Label Grid.Row="0" Margin="150,0,0,0" Name="lblSignatureLength"></Label>
    82                 <!--<TextBox Grid.Row="1" Name="tbResult" TextWrapping="Wrap" MaxWidth="400" MinHeight="80" IsReadOnly="True" Margin="5,5,5,5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextChanged="tbResult_TextChanged"></TextBox>-->
    83                 <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>
     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>
    8485                <Label Grid.Row="2" Margin="0,0,0,0" Name="lblCipherText">Verschlüsselt</Label>
    8586                <Label Grid.Row="2" Margin="150,0,0,0" Name="lblEncryptedSignatureLength"></Label>
    86                 <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>
     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>
    8788            </Grid>
    8889        </GroupBox>
Note: See TracChangeset for help on using the changeset viewer.