Hermes/SmsWindow.xaml

39 lines
2.2 KiB
XML

<Window x:Class="Hermes.SmsWindow"
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"
xmlns:local="clr-namespace:Hermes"
mc:Ignorable="d"
ResizeMode="NoResize"
Title="Envoi de SMS" Height="490" Width="700"
WindowStartupLocation="CenterOwner"
Closing="Window_Closing">
<Grid Background="WhiteSmoke">
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="200"/>
<RowDefinition Height="30"/>
<RowDefinition Height="150"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Label Grid.Row="0" Margin="5,0,0,0" VerticalAlignment="Bottom">Entrez votre message</Label>
<RichTextBox Name="messageTextBox" Margin="5,0,5,0" Grid.Row="1" FontSize="15" Block.LineHeight="2" VerticalScrollBarVisibility="Visible"/>
<Label Grid.Row="2" Margin="5,0,0,0" VerticalAlignment="Bottom">Liste des envois</Label>
<ListView Name="lvLog" Grid.Row="3" Margin="5,0,5,0" ScrollViewer.VerticalScrollBarVisibility="Visible">
<ListView.View>
<GridView>
<GridViewColumn Header="Nom" DisplayMemberBinding="{Binding Nom}" Width="120"/>
<GridViewColumn Header="Prénom" DisplayMemberBinding="{Binding Prenom}" Width="120"/>
<GridViewColumn Header="Mobile" DisplayMemberBinding="{Binding Mobile}" Width="120"/>
<GridViewColumn Header="Statut de l'envoi" DisplayMemberBinding="{Binding Status}" Width="290"/>
</GridView>
</ListView.View>
</ListView>
<WrapPanel Grid.Row="4" Margin="0,0,5,0" HorizontalAlignment="Right" VerticalAlignment="Center">
<Button Name="envoyerButton" Margin="0,0,10,0" Height="25" Width="100" IsDefault="True" Click="Envoyer_Click">Envoyer</Button>
<Button Name="annulerButton" Height="25" Width="100" Click="Annuler_Click">Annuler</Button>
</WrapPanel>
</Grid>
</Window>