Changeset 79


Ignore:
Timestamp:
Nov 27, 2008, 3:24:29 PM (13 years ago)
Author:
angelov
Message:

some change on presentation

Location:
trunk/CrypPlugins
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/FrequencyTest/FrequencyTestPresentation.xaml

    r64 r79  
    6868           
    6969           
    70             <ItemsControl
     70            <ItemsControl HorizontalAlignment="Center"
    7171             
    7272             ItemsSource="{Binding Source={StaticResource source},Path=ValueCollection}"
  • trunk/CrypPlugins/KasiskiTest/DataSource.cs

    r74 r79  
    2626           
    2727            valueCollection = new ObservableCollection<CollectionElement>();
    28            
     28           //  CollectionElement z= new CollectionElement(30,30,30);
     29           // valueCollection.Add(z);
     30            // CollectionElement y = new CollectionElement(30, 40, 50);
     31            // CollectionElement s = new CollectionElement(30, 200, 180);
     32            // valueCollection.Add(s);
     33            // valueCollection.Add(y);
     34            // CollectionElement q = new CollectionElement(30, 30, 150);
     35            // valueCollection.Add(q);
     36
    2937        }
    3038    }
  • trunk/CrypPlugins/KasiskiTest/KasiskiTest.cs

    r75 r79  
    241241                }
    242242                Data.ValueCollection.Clear();
    243                 double bigestheight = 0;
    244                 for (int z = 1; z <= factorCounter.Count(); z++)
    245                 {
    246                     if (bigestheight < (double)factorCounter[z - 1])
     243                double bigestheight = factorCounter[2];
     244                for (int z = 3; z <= factorCounter.Count()-1; z++)
     245                {
     246                    if (bigestheight < (double)factorCounter[z])
    247247                    {
    248                         bigestheight = (double)factorCounter[z - 1];
     248                        bigestheight = (double)factorCounter[z];
    249249                    }
    250250                }
     
    253253                {
    254254                   
    255                     CollectionElement row = new CollectionElement(n, factorCounter[n], (factorCounter[n]*(200/bigestheight)) );
     255                    CollectionElement row = new CollectionElement(n, factorCounter[n], (factorCounter[n]*(180/bigestheight)) );
    256256                    Data.ValueCollection.Add(row);
    257257                }
  • trunk/CrypPlugins/KasiskiTest/KasiskiTestPresentation.xaml

    r75 r79  
    33    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    44    xmlns:local="clr-namespace:Cryptool.KasiskiTest"       
    5     Background="Transparent"
     5    Background="Wheat"
    66    SnapsToDevicePixels="True"
    7     HorizontalAlignment="Center"
     7    HorizontalAlignment="Stretch"
    88             Height="Auto"
    99             Width="Auto" >
     
    2222                <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
    2323
    24                     <TextBlock HorizontalAlignment="Center" Text="{Binding Path=Amount}">
     24                    <TextBlock HorizontalAlignment="Center" Foreground="Black" ToolTip="Number of hits for the coresponding factor"  Text="{Binding Path=Amount}">
    2525                    </TextBlock>
    2626
     
    3434                        <Rectangle.Fill>
    3535                            <RadialGradientBrush >
    36                                 <GradientStop Color="Turquoise" Offset="0" />
    37                                 <GradientStop Color="DarkBlue" Offset="1" />
     36                                <GradientStop Color="Wheat" Offset="0" />
     37                                <GradientStop Color="DarkOliveGreen" Offset="1" />
    3838                            </RadialGradientBrush>
    3939                        </Rectangle.Fill>
     
    4444                    <Rectangle Height="10" />
    4545
    46                     <TextBlock HorizontalAlignment="Center" Text="{Binding Path=Factor}"/>
     46                    <TextBlock HorizontalAlignment="Center" Foreground="Black" Text="{Binding Path=Factor}"/>
    4747
    4848
    4949                </StackPanel>
     50               
    5051            </StackPanel>
    5152
     
    6465    <ScrollViewer ScrollViewer.VerticalScrollBarVisibility="Auto"  ScrollViewer.HorizontalScrollBarVisibility="Auto">
    6566        <StackPanel>
    66             <TextBlock TextAlignment="Center" FontSize="20" Foreground="DarkBlue"  FontFamily="Academy" OpacityMask="Turquoise" Text="Probable key lengths. Probability increases with Factor Count"></TextBlock>
     67            <TextBlock TextAlignment="Center" IsHyphenationEnabled="True" FontSize="18" Foreground="Black"  FontFamily="Academy" OpacityMask="Turquoise" Text="Frequency of factors composing the distances "
     68                ToolTip="Tip:The keylength could be one of the most frequent factors or a multiple "  >
     69               
     70            </TextBlock>
     71           
     72            <TextBlock TextAlignment="Center" IsHyphenationEnabled="True" FontSize="18" Foreground="Black"  FontFamily="Academy" OpacityMask="Turquoise" Text="between identical strings in the cyphertext"
     73                 ToolTip="Tip:The keylength could be one of the most frequent factors or a multiple "      >
     74               
     75            </TextBlock>
    6776
    6877
    69 
    70             <ItemsControl
     78            <ItemsControl  HorizontalAlignment="Center"
    7179             
    7280             ItemsSource="{Binding Source={StaticResource source},Path=ValueCollection}"
Note: See TracChangeset for help on using the changeset viewer.