source: trunk/CrypPlugins/P2PEditor/GUI/P2PEditorPresentation.xaml @ 2276

Last change on this file since 2276 was 2276, checked in by kopal, 11 years ago
  • created gui to request a certificate for p2p
  • fixed a small bug not checking the password/worldname fields correctly before connecting to p2p
File size: 2.0 KB
Line 
1<GUI:P2PUserControl x:Class="Cryptool.P2PEditor.GUI.P2PEditorPresentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:controls="clr-namespace:Cryptool.P2PEditor.GUI.Controls" xmlns:GUI="clr-namespace:Cryptool.P2PEditor.GUI" xmlns:Converters="clr-namespace:Cryptool.P2PEditor.Converters" mc:Ignorable="d" d:DesignHeight="278" d:DesignWidth="656" x:Name="P2PEditorControl">
2        <GUI:P2PUserControl.Resources>
3        <Converters:ConnectivityToVisibilityConverter x:Key="ConnectivityToVisibilityConverter" />
4        </GUI:P2PUserControl.Resources>
5        <Grid>
6                <TabControl TabStripPlacement="Top" Name="JobTabControl">
7            <TabItem Header="Active jobs" Name="ActiveJobsTab" IsEnabled="{Binding IsP2PConnected, ElementName=P2PEditorControl}">
8                <controls:JobDisplay x:Name="ActiveJobsControl" Jobs="{Binding Jobs, ElementName=P2PEditorControl}" />
9                        </TabItem>
10            <TabItem Header="New job" Name="JobCreationTab" IsEnabled="{Binding IsP2PConnected, ElementName=P2PEditorControl}">
11                                <controls:JobCreation />
12                        </TabItem>
13            <TabItem Header="Connect" Name="ConnectTab" Visibility="{Binding IsP2PConnected, ElementName=P2PEditorControl, Converter={StaticResource ConnectivityToVisibilityConverter}}">
14                <controls:ConnectTab IsP2PConnecting="{Binding IsP2PConnecting, ElementName=P2PEditorControl}" />
15            </TabItem>
16            <TabItem Header="Get new Certificate" Name="GetNewCertificateTab" Visibility="{Binding IsP2PConnected, ElementName=P2PEditorControl, Converter={StaticResource ConnectivityToVisibilityConverter}}">
17                <controls:GetNewCertificate />
18            </TabItem>
19            <TabItem Header="About" Name="AboutTab">
20                <Frame Source="../DetailedDescription/Description.xaml" />
21            </TabItem>
22        </TabControl>
23        </Grid>
24</GUI:P2PUserControl>
Note: See TracBrowser for help on using the repository browser.