1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
| <navigation:Page xmlns:App="clr-namespace:WSDSms.Web"
xmlns:dataFormToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit"
xmlns:activity="clr-namespace:System.Windows.Controls;assembly=ActivityControl"
xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Ria"
xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
x:Class="WSDSms.Views.MesMessages"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
d:DesignWidth="640"
d:DesignHeight="480"
Title="MesMessages Page">
<Grid x:Name="LayoutRoot">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="40"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<riaControls:DomainDataSource x:Name="sourceMessages"
QueryName="GetUserWSD_Message"
AutoLoad="True">
</riaControls:DomainDataSource>
<riaControls:DomainDataSource x:Name="sourceForex"
QueryName="GetT_FOREX"
AutoLoad="True">
</riaControls:DomainDataSource>
<riaControls:DomainDataSource
x:Name="sourceLocat"
QueryName="GetLocatByUserWSD"
AutoLoad="True"
LoadedData="sourceLocat_LoadedData">
</riaControls:DomainDataSource>
<riaControls:DomainDataSource
x:Name="sourceMarkets"
QueryName="GetMarketsByUserLocat"
AutoLoad="True"
LoadedData="sourceMarkets_LoadedData">
<riaControls:DomainDataSource.QueryParameters>
<riaControls:ControlParameter ParameterName="idLocat"
ControlName="ListeLocat"
PropertyName="SelectedItem.locat"
RefreshEventName="SelectionChanged"/>
</riaControls:DomainDataSource.QueryParameters>
</riaControls:DomainDataSource>
<riaControls:DomainDataSource
x:Name="sourceEcheancesFixes"
QueryName="GetEXPIRY"
AutoLoad="True">
<riaControls:DomainDataSource.QueryParameters>
<riaControls:ControlParameter ParameterName="idMarket"
ControlName="ListeMarkets"
PropertyName="SelectedItem.IdMarkets"
RefreshEventName="SelectionChanged"/>
</riaControls:DomainDataSource.QueryParameters>
</riaControls:DomainDataSource>
<activity:Activity IsActive="{Binding IsBusy, ElementName=sourceMessages}" Grid.Column="0" Grid.Row="0">
<ListBox x:Name="ListeMessages" ItemsSource="{Binding Data, ElementName=sourceMessages}" Margin="10" DisplayMemberPath="Titre"/>
</activity:Activity>
<activity:Activity IsActive="{Binding IsBusy, ElementName=sourceMessages}"
Grid.Column="1"
Grid.Row="0"
Grid.ColumnSpan="2">
<StackPanel>
<dataFormToolkit:DataForm x:Name="DataFormMessage"
Header="Détail du message"
CurrentItem="{Binding SelectedItem, ElementName=ListeMessages}"
Margin="10">
<dataFormToolkit:DataForm.EditTemplate>
<DataTemplate>
<StackPanel>
<dataFormToolkit:DataField>
<TextBox Height="30" Text="{Binding Titre, Mode=TwoWay}"/>
</dataFormToolkit:DataField>
</StackPanel>
</DataTemplate>
</dataFormToolkit:DataForm.EditTemplate>
</dataFormToolkit:DataForm>
<TextBlock Text="Contenu du message"/>
<TextBox x:Name="textBox"
Height="200"
Margin="5"
Text="{Binding SelectedItem.Message, ElementName=ListeMessages, Mode=TwoWay}"/>
</StackPanel>
</activity:Activity>
<StackPanel Orientation="Horizontal"
Grid.Column="0"
Grid.ColumnSpan="2"
Grid.Row="1">
<Button Content="Ajouter"
x:Name="button_ajoutMessage"
Width="80" Height="28"
Margin="5"
Click="button_ajoutMessage_Click"/>
<Button Content="Supprimer"
x:Name="button_supprMessage"
Width="80" Height="28"
Margin="5"
Click="button_supprMessage_Click"/>
<Button Content="Save"
x:Name="button_sauvegarde"
Width="80" Height="28"
Margin="5"
Click="button_sauvegarde_Click"/>
</StackPanel>
<StackPanel Grid.Column="3" Grid.Row="0" Grid.RowSpan="2">
<TextBlock Text="Instruments"
Height="30"/>
<ComboBox x:Name="ListeTypeInstrument"
Height="30"
Margin="5"
SelectionChanged="ListeTypeInstrument_SelectionChanged"
DisplayMemberPath="Affichage"/>
<activity:Activity IsActive="{Binding IsBusy, ElementName=sourceForex}">
<ComboBox x:Name="ListeForex"
Height="30"
Margin="5"
ItemsSource="{Binding Data, ElementName=sourceForex}"
DisplayMemberPath="SYMBOL"/>
</activity:Activity>
<activity:Activity IsActive="{Binding IsBusy, ElementName=sourceLocat}">
<ComboBox x:Name="ListeLocat"
Height="30"
Margin="5"
ItemsSource="{Binding Data, ElementName=sourceLocat}"
SelectionChanged="ListeLocat_SelectionChanged"
DisplayMemberPath="nomLocat"/>
</activity:Activity>
<activity:Activity IsActive="{Binding IsBusy, ElementName=sourceLocat}">
<activity:Activity IsActive="{Binding IsBusy, ElementName=sourceMarkets}">
<ComboBox x:Name="ListeMarkets"
Height="30"
Margin="5"
ItemsSource="{Binding Data, ElementName=sourceMarkets}"
SelectionChanged="ListeMarkets_SelectionChanged"
DisplayMemberPath="LabelledMarkets"/>
</activity:Activity>
</activity:Activity>
<ComboBox x:Name="ListeTypesEcheance"
Height="30" Margin="5"
SelectionChanged="ListeTypesEcheance_SelectionChanged"/>
<activity:Activity IsActive="{Binding IsBusy, ElementName=sourceLocat}">
<activity:Activity IsActive="{Binding IsBusy, ElementName=sourceMarkets}">
<activity:Activity IsActive="{Binding IsBusy, ElementName=sourceEcheancesFixes}">
<ComboBox x:Name="ListeEcheancesFixes"
Height="30"
Margin="5"
ItemsSource="{Binding Data, ElementName=sourceEcheancesFixes}"
DisplayMemberPath="LabelledExpiry"/>
</activity:Activity>
</activity:Activity>
</activity:Activity>
<ComboBox x:Name="ListeEcheancesDynamiques"
Height="30" Margin="5"
DisplayMemberPath="Affichage"/>
<ComboBox x:Name="ListeAttributs"
Height="30" Margin="5"
DisplayMemberPath="Affichage"/>
<Button x:Name="ButtonAjoutDonneeDynamique"
Height="30" Margin="5"
Click="ButtonAjoutDonneeDynamique_Click"
Content="Ajouter au message"/>
</StackPanel>
</Grid>
</navigation:Page> |
Partager