source: trunk/CrypPlugins/P2PEditor/GUI/Controls/GetNewCertificateView.xaml @ 2408

Last change on this file since 2408 was 2408, checked in by kopal, 11 years ago
  • added auto download of certificate data
  • increased space in gui for messages / error messages
File size: 5.3 KB
Line 
1<GUI:P2PUserControl x:Class="Cryptool.P2PEditor.GUI.Controls.GetNewCertificate"
2             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:GUI="clr-namespace:Cryptool.P2PEditor.GUI" mc:Ignorable="d"
6             d:DesignHeight="360" d:DesignWidth="693">
7    <Grid>
8    <ScrollViewer Name="RequestPage" VerticalScrollBarVisibility="Auto">
9        <Grid Height="350" Width="670">
10            <Grid.ColumnDefinitions>
11                <ColumnDefinition Width="110" />
12                <ColumnDefinition Width="*" />
13            </Grid.ColumnDefinitions>
14            <Grid.RowDefinitions>
15                <RowDefinition Height="100"/>
16                <RowDefinition Height="56"/>
17                <RowDefinition Height="28"/>
18                <RowDefinition Height="28" />
19                <RowDefinition Height="28" />
20                <RowDefinition Height="28" />
21                <RowDefinition Height="80" />
22                    <RowDefinition Height="12*" />
23                </Grid.RowDefinitions>
24                <Label Content="Account Creation"  Grid.ColumnSpan="2" Margin="0,0,0,56" FontSize="15" FontWeight="Bold" HorizontalAlignment="Center"/>
25                <TextBlock Grid.ColumnSpan="2" Margin="5,32,0,0" FlowDirection="LeftToRight" HorizontalAlignment="Center">
26            Please enter the data below to request your own personal account (needed for participating in distributed
27            <LineBreak/>
28            computing - like distributed key searching). CrypTool 2.0 will connect to our server and request
29            <LineBreak/>
30            your account data. This data will be stored into your application data folder of windows.
31            <LineBreak/>
32            We will send you an activation code. Use this code to activate your account by clicking the activate button.
33            </TextBlock>
34            <Label Name="MessageLabel" Foreground="Red" Grid.Row="1" Grid.ColumnSpan="2" />
35            <Label Content="_Username:" Target="{Binding ElementName=UsernameField}" Grid.Row="2" Grid.Column="0" />
36            <Label Content="_Email:" Target="{Binding ElementName=EmailField}" Grid.Row="3" Grid.Column="0" />
37            <Label Content="_Password:" Target="{Binding ElementName=PasswordField}" Grid.Row="4" Grid.Column="0" />
38            <Label Content="_Confirm:" Target="{Binding ElementName=ConfirmField}" Grid.Row="5" Grid.Column="0" />
39            <TextBox Text="{Binding Name}" x:Name="UsernameField" Grid.Row="2" Grid.Column="1" Height="24" />
40            <TextBox Text="{Binding Name}" x:Name="EmailField" Grid.Row="3" Grid.Column="1" Height="24" />
41            <PasswordBox x:Name="PasswordField" Grid.Row="4" Grid.Column="1" Height="24" />
42            <PasswordBox x:Name="ConfirmField" Grid.Row="5" Grid.Column="1" Height="24" />
43            <Button Name="RequestButton" Content="_Request" HorizontalAlignment="Left" Width="54" Grid.Row="6" Grid.Column="1" Height="24" Click="Request_Click" Margin="378,20,0,36" />
44            <Button Name="BackButton" Content="_Back" Height="24" HorizontalAlignment="Right" Margin="0,20,6,36" Width="54" Grid.Row="6" Grid.Column="1" Click="BackButton_Click" />
45            <Button Name="ActivateButton" Content="_Activate" Height="24" HorizontalAlignment="Left" Margin="438,20,0,36" Width="56" Grid.Column="1" Grid.Row="6" Click="ActivateButton_Click"/>
46            <Label Name="RequestLabel" Content="Requesting certificate..." Visibility="Hidden" Target="{Binding ElementName=ConfirmField}" Grid.Row="6" Margin="0,19,325,27" HorizontalAlignment="Right" Width="151" Grid.Column="1" FontWeight="Bold" />
47            <Image Name="WorldIcon" Source="..\..\images\connected.png" Grid.Column="1" Margin="200,0,194,0" Grid.Row="6" RenderTransformOrigin="0.5,0.5">
48                <Image.RenderTransform>
49                    <RotateTransform x:Name="WorldIconImageRotate"/>
50                </Image.RenderTransform>
51            </Image>               
52            </Grid>
53    </ScrollViewer>
54    <ScrollViewer Name="OKPage" VerticalScrollBarVisibility="Auto" Visibility="Hidden">
55    <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Margin="80,55,80,53">
56        <Label FontSize="16" HorizontalContentAlignment="Center">Account succesfully requested</Label>
57        <Image Name="Account" Source="..\..\images\account.png"  Margin="5,5,5,5" Width="48" />
58        <TextBlock Grid.ColumnSpan="2" Margin="15,15,15,15" FlowDirection="LeftToRight" HorizontalAlignment="Center">
59        Your new account was requested successfully and can be used after verification.
60        <LineBreak/>
61        Press the OK button to proceed.
62        </TextBlock>
63        <Button Name="OKButton" Content="_OK" Height="24" Width="50" Click="OKButton_Click" />
64    </StackPanel>
65    </ScrollViewer>
66    </Grid>
67    <GUI:P2PUserControl.Resources>
68        <Storyboard x:Key="AnimateWorldIcon">
69            <DoubleAnimation Storyboard.TargetName="WorldIconImageRotate" Storyboard.TargetProperty="Angle" By="360" Duration="00:00:10" BeginTime="00:00:00" RepeatBehavior="Forever"/>
70        </Storyboard>
71    </GUI:P2PUserControl.Resources>
72</GUI:P2PUserControl>
Note: See TracBrowser for help on using the repository browser.