Changeset 864


Ignore:
Timestamp:
Nov 17, 2009, 4:53:26 PM (12 years ago)
Author:
pretzsch
Message:

+ MD5 plugin: Hex string converters for presentation

Location:
trunk/CrypPlugins/MD5
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/MD5/MD5.csproj

    r863 r864  
    6767    <Compile Include="PresentableMd5.cs" />
    6868    <Compile Include="PresentableMd5State.cs" />
     69    <Compile Include="Presentation\Converters\ByteArrayToHexStringConverter.cs" />
    6970    <Compile Include="Presentation\PresentationContainer.xaml.cs">
    7071      <DependentUpon>PresentationContainer.xaml</DependentUpon>
  • trunk/CrypPlugins/MD5/PresentableMd5.cs

    r863 r864  
    7474            OnPropChanged("CurrentStateNumber");
    7575            OnPropChanged("IsInFinishedState");
     76            OnPropChanged("HashValueBytes");
    7677
    7778            if (StatusChanged != null)
  • trunk/CrypPlugins/MD5/Presentation/PresentationContainer.xaml

    r863 r864  
    22    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    33    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    4     Height="340" Width="606">
     4             xmlns:conv="clr-namespace:Cryptool.MD5.Presentation.Converters">
     5    <UserControl.Resources>
     6        <conv:ByteArrayToHexStringConverter x:Key="hexConverter"/>
     7    </UserControl.Resources>
    58    <Grid>
    69        <Label Height="28" HorizontalAlignment="Left" Margin="12,12,0,0" Name="stateCaptionLabel" VerticalAlignment="Top" Width="94">State:</Label>
    7         <Label Height="28" Margin="112,12,0,0" Name="stateValueLabel" VerticalAlignment="Top" Content="{Binding CurrentState.State}" HorizontalAlignment="Left" Width="88" />
     10        <Label Height="28" Margin="64,12,0,0" Name="stateValueLabel" VerticalAlignment="Top" Content="{Binding CurrentState.State}" HorizontalAlignment="Left" Width="136" />
    811        <Button Height="23" Margin="122,0,0,12" Name="previousStepButton" VerticalAlignment="Bottom" Click="previousStepButton_Click" HorizontalAlignment="Left" Width="75">&lt;&lt; Previous</Button>
    912        <Button Height="23" Margin="203,0,0,12" Name="nextStepButton" VerticalAlignment="Bottom" Click="nextStepButton_Click" HorizontalAlignment="Left" Width="75">Next &gt;&gt;</Button>
    1013        <Rectangle Height="60" Margin="12,46,12,0" Name="rectangle1" Stroke="Black" VerticalAlignment="Top" />
    1114        <Label Height="28" Margin="12,46,12,0" Name="label1" VerticalAlignment="Top">Data</Label>
    12         <Label Height="28" Margin="12,80,12,0" Name="label2" VerticalAlignment="Top" Content="{Binding CurrentState.Data}"/>
     15        <Label Height="28" Margin="12,80,12,0" Name="label2" VerticalAlignment="Top" Content="{Binding CurrentState.Data, Converter={StaticResource hexConverter}}"/>
    1316        <Label Height="28" HorizontalAlignment="Left" Margin="12,114,0,0" Name="label3" VerticalAlignment="Top" Width="120">A</Label>
    1417        <Label Height="28" HorizontalAlignment="Left" Margin="138,114,0,0" Name="label4" VerticalAlignment="Top" Width="120">B</Label>
     
    3336        <Button Height="23" Margin="284,0,209,12" Name="endOfRoundButton" VerticalAlignment="Bottom" Click="endOfRoundButton_Click">End of Round &gt;&gt;&gt;</Button>
    3437        <Button Height="23" HorizontalAlignment="Right" Margin="0,0,12,12" Name="endOfCompressionButton" VerticalAlignment="Bottom" Width="191" Click="endOfCompressionButton_Click">End of block compression &gt;&gt;&gt;&gt;</Button>
     38        <Label Height="28" HorizontalAlignment="Left" Margin="15,0,0,70" Name="label23" VerticalAlignment="Bottom" Width="120">H-Bytes:</Label>
     39        <Label Height="28" Margin="141,0,12,70" Name="label24" VerticalAlignment="Bottom" Content="{Binding HashValueBytes, Converter={StaticResource hexConverter}}"/>
    3540    </Grid>
    3641</UserControl>
Note: See TracChangeset for help on using the changeset viewer.