source: trunk/CrypPlugins/PeerToPeerManager_NEW/P2PManagerPresentation.xaml @ 1199

Last change on this file since 1199 was 1199, checked in by arnold, 12 years ago

P2PManager

  • Enlarged KeyPatternSize range to 1.000, because the new DES/AES-Implementation runs so fast, that a KeyPattern with KeyPatternSize of 150 will be processed in approximately 40 seconds on a modern PC
  • Embellished Layout
  • Enhanced information display (total processing time)
  • Jobs in progress change their color every second between Yellow and LightGray

Samples:

  • Changed from CFB to CBC, because this modus is much faster than CFB!
  • Changed KeyPatternSize to 150, because the new DES/AES Implementation runs much faster
File size: 8.8 KB
Line 
1<UserControl x:Class="Cryptool.Plugins.PeerToPeer.P2PManagerPresentation"
2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4    xmlns:my="clr-namespace:Cryptool.Plugins.PeerToPeer"
5    HorizontalAlignment="Stretch"
6    VerticalAlignment="Stretch"
7    Name="MngrMain"
8    Background="LightBlue"
9    MinHeight="150" MinWidth="100"
10    Height="Auto" Width="Auto">
11
12    <Canvas Name="Canvas" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
13        <Grid Name="Grid1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
14            <Grid.RowDefinitions>
15                <RowDefinition Height="Auto"/>
16                <RowDefinition Height="Auto"/>
17                <RowDefinition Height="Auto"/>
18                <RowDefinition Height="Auto"/>
19            </Grid.RowDefinitions>
20            <Grid.ColumnDefinitions>
21                <ColumnDefinition/>
22                <ColumnDefinition/>
23            </Grid.ColumnDefinitions>
24
25            <Expander Name="Expander_JobStatus" Header="Job Status Info" IsExpanded="True" FontSize="10">
26                <Grid Name="JobGrid">
27                    <Grid.RowDefinitions>
28                        <RowDefinition/>
29                        <RowDefinition/>
30                        <RowDefinition/>
31                        <RowDefinition/>
32                    </Grid.RowDefinitions>
33                    <Grid.ColumnDefinitions>
34                        <ColumnDefinition Width="Auto"/>
35                        <ColumnDefinition MinWidth="20" Width="Auto"/>
36                        <ColumnDefinition Width="Auto"/>
37                    </Grid.ColumnDefinitions>
38
39                    <Grid Grid.Row="0" Grid.Column="2" Grid.RowSpan="4">
40                        <Grid.RowDefinitions>
41                            <RowDefinition/>
42                            <RowDefinition/>
43                            <RowDefinition/>
44                            <RowDefinition/>
45                        </Grid.RowDefinitions>
46                        <Grid.ColumnDefinitions>
47                            <ColumnDefinition/>
48                            <ColumnDefinition/>
49                        </Grid.ColumnDefinitions>
50
51                       
52                        <Label Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Bottom"
53                           VerticalAlignment="Top" HorizontalContentAlignment="Center" >Total Progress:</Label>
54                        <TextBox Name="txtProgressInPercent" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" TextAlignment="Center"
55                             IsReadOnly="True" TextWrapping="WrapWithOverflow" FontSize="10" FontWeight="Bold"
56                             BorderThickness="0" VerticalContentAlignment="Top" HorizontalContentAlignment="Center"
57                             Background="LightGray" Text="not started"/>
58                       
59                        <Label Grid.Row="2" Grid.Column="0" FontSize="8" VerticalContentAlignment="Center"
60                               HorizontalContentAlignment="Left">Time in process:</Label>
61                        <TextBox Grid.Row="2" Grid.Column="1" Name="txtTimeInProcess" TextAlignment="Left"
62                             IsReadOnly="True" TextWrapping="WrapWithOverflow" FontSize="8" VerticalContentAlignment="Center"
63                             BorderThickness="0" HorizontalContentAlignment="Left"
64                                 Background="Transparent" Text="not started" />
65
66                        <Label Grid.Row="3" Grid.Column="0" FontSize="8" FontStyle="Italic"
67                               HorizontalContentAlignment="Left" Background="LightGray">Estimated end time:</Label>
68                        <TextBox Grid.Row="3" Grid.Column="1"  Name="txtEstimatedEndTime" VerticalContentAlignment="Center"
69                             HorizontalContentAlignment="Left" IsReadOnly="True" TextWrapping="WrapWithOverflow" FontSize="8"
70                             BorderThickness="0" Text="no finished jobs" Background="LightGray"/>
71                    </Grid>
72
73                    <Label Grid.Row="0" Grid.Column="0" FontSize="8" FontWeight="Bold" VerticalAlignment="Top" Height="23" Width="AUTO">Total:</Label>
74                    <TextBox Name="txtTotal" Grid.Row="0" Grid.Column="1" TextAlignment="Left"
75                     IsReadOnly="True" TextWrapping="WrapWithOverflow" VerticalAlignment="Top"
76                     Height="23" FontSize="8" FontWeight="Bold" BorderThickness="1" Background="Transparent" />
77
78                    <Label Grid.Row="1" Grid.Column="0" FontSize="8" Background="LightGray" VerticalAlignment="Top" Height="23" Width="AUTO">In Progress:</Label>
79                    <TextBox Name="txtInProgress" Grid.Row="1" Grid.Column="1" TextAlignment="Left"
80                     IsReadOnly="True" TextWrapping="WrapWithOverflow" VerticalAlignment="Bottom"
81                     Height="23" FontSize="8" BorderThickness="1" Background="LightGray"/>
82
83                    <Label Grid.Row="2" Grid.Column="0" FontSize="8" VerticalAlignment="Top" Height="23" Width="AUTO">Left:</Label>
84                    <TextBox Name="txtLeft" Grid.Row="2" Grid.Column="1" TextAlignment="Left"
85                     IsReadOnly="True" TextWrapping="WrapWithOverflow" VerticalAlignment="Top"
86                     Height="23" FontSize="8" BorderThickness="1" Background="Transparent" />
87
88                    <Label Grid.Row="3" Grid.Column="0" FontSize="8" FontWeight="Bold" Background="LightGray" VerticalAlignment="Top" Height="23" Width="AUTO">Finished:</Label>
89                    <TextBox Name="txtFinished" Grid.Row="3" Grid.Column="1" TextAlignment="Left"
90                     IsReadOnly="True" TextWrapping="WrapWithOverflow" VerticalAlignment="Bottom"
91                     Height="23" FontSize="8" BorderThickness="1" Background="LightGray" />
92
93                </Grid>
94            </Expander>
95
96            <Expander Name="Expander_List" Header="Global Top 10 List" IsExpanded="True" FontSize="10" Grid.Row="2">
97                <ListView Name="ListView" ItemsSource="{Binding}" ScrollViewer.HorizontalScrollBarVisibility="Auto"  ScrollViewer.VerticalScrollBarVisibility="Auto" FontSize="7" MaxWidth="255">
98                    <ListView.View>
99                        <GridView>
100                            <GridViewColumn Header="Ranking" DisplayMemberBinding="{Binding Path=Ranking}"></GridViewColumn>
101                            <GridViewColumn Header="Value" DisplayMemberBinding="{Binding Path=Value}"></GridViewColumn>
102                            <GridViewColumn Header="Key" DisplayMemberBinding="{Binding Path=Key}"></GridViewColumn>
103                            <GridViewColumn Header="Text" DisplayMemberBinding="{Binding Path=Text}" ></GridViewColumn>
104                        </GridView>
105                    </ListView.View>
106                </ListView>
107            </Expander>
108
109            <Expander Name="Expander_WorkerInfo" Header="Worker Info" IsExpanded="False" FontSize="10" Grid.Row="3">
110                <Grid Name="WorkerGrid">
111                    <Grid.RowDefinitions>
112                        <RowDefinition/>
113                        <RowDefinition/>
114                        <RowDefinition/>
115                    </Grid.RowDefinitions>
116                    <Grid.ColumnDefinitions>
117                        <ColumnDefinition Width="75"/>
118                        <ColumnDefinition Width="50"/>
119                    </Grid.ColumnDefinitions>
120
121                    <Label Grid.Row="0" Grid.Column="0" FontSize="8" Height="23" FontWeight="Bold">Total Amount:</Label>
122                    <TextBox Name="txtTotalWorker" Grid.Row="0" Grid.Column="1" TextAlignment="Left"
123                     IsReadOnly="True" TextWrapping="WrapWithOverflow" VerticalAlignment="Top"
124                     Height="23" FontSize="8" BorderThickness="1" FontWeight="Bold" Background="Transparent"/>
125
126                    <Label Grid.Row="1" Grid.Column="0" FontSize="8" Height="23" Background="LightGray">Free:</Label>
127                    <TextBox Name="txtFreeWorker" Grid.Row="1" Grid.Column="1" TextAlignment="Left"
128                     IsReadOnly="True" TextWrapping="WrapWithOverflow" VerticalAlignment="Top"
129                     Height="23" FontSize="8" BorderThickness="1" Background="LightGray"/>
130
131                    <Label Grid.Row="2" Grid.Column="0" FontSize="8" Height="23">Busy:</Label>
132                    <TextBox Name="txtBusyWorker" Grid.Row="2" Grid.Column="1" TextAlignment="Left"
133                     IsReadOnly="True" TextWrapping="WrapWithOverflow" VerticalAlignment="Top"
134                     Height="23" FontSize="8" BorderThickness="1" Background="Transparent"/>
135                </Grid>
136            </Expander>
137        </Grid>
138    </Canvas>
139</UserControl>
Note: See TracBrowser for help on using the repository browser.