Ignore:
Timestamp:
Jun 10, 2010, 5:45:26 PM (11 years ago)
Author:
Paul Lelgemann
Message:

+ P2PEditor: new tab, which "invites" to connect to the network

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/P2PEditor/GUI/P2PEditorPresentation.xaml

    r1563 r1619  
    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" mc:Ignorable="d" d:DesignHeight="278" d:DesignWidth="656" x:Name="P2PEditorControl">
     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>
    25        <Grid>
    3                 <TabControl TabStripPlacement="Top" Name="JobTabControl" IsEnabled="{Binding IsP2PConnected, ElementName=P2PEditorControl}">
    4                         <TabItem Header="Active jobs" Name="ActiveJobsTab">
    5                                 <controls:JobDisplay x:Name="ActiveJobsControl" Jobs="{Binding Jobs,RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" />
     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}" />
    69                        </TabItem>
    7                         <TabItem Header="New job" Name="JobCreationTab">
     10            <TabItem Header="New job" Name="JobCreationTab" IsEnabled="{Binding IsP2PConnected, ElementName=P2PEditorControl}">
    811                                <controls:JobCreation />
    912                        </TabItem>
    10                 </TabControl>
     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        </TabControl>
    1117        </Grid>
    1218</GUI:P2PUserControl>
Note: See TracChangeset for help on using the changeset viewer.