allDonne !
This commit is contained in:
@@ -19,9 +19,6 @@ namespace ProjetTheAlone.View
|
||||
/// </summary>
|
||||
public partial class Accueil : Window
|
||||
{
|
||||
DashBoard W_DashBoard;
|
||||
FicEncodage W_FicEncodage;
|
||||
FicGestionAlert W_GestionAlert;
|
||||
public Accueil()
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -29,6 +26,7 @@ namespace ProjetTheAlone.View
|
||||
//W_DashBoard = new DashBoard();
|
||||
//W_FicEncodage = new FicEncodage();
|
||||
//W_GestionAlert = new FicGestionAlert();
|
||||
|
||||
}
|
||||
private static bool openaffichage = false;
|
||||
private static bool openencodage = false;
|
||||
@@ -82,8 +80,6 @@ namespace ProjetTheAlone.View
|
||||
{
|
||||
FicGestionAlert w = new FicGestionAlert();
|
||||
w.Show();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
32
ProjetTheAlone/View/FicClassement.xaml
Normal file
32
ProjetTheAlone/View/FicClassement.xaml
Normal file
@@ -0,0 +1,32 @@
|
||||
<Window x:Class="ProjetTheAlone.View.FicClassement"
|
||||
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:ProjetTheAlone.View"
|
||||
mc:Ignorable="d"
|
||||
Title="Classement" Height="517.897" Width="638.259" WindowStartupLocation="CenterScreen" WindowStyle="None">
|
||||
<Grid Margin="0,0,2,2">
|
||||
<Label Content="Classement" HorizontalAlignment="Left" Margin="24,15,0,0" VerticalAlignment="Top" FontFamily="Calibri" FontSize="20" Width="115" Height="34"/>
|
||||
|
||||
<Button x:Name="btnQuitter"
|
||||
Content="Quitter" Click="btnQuitter_Click" Height="41" Margin="494,436,28,31" RenderTransformOrigin="1.189,1.927"/>
|
||||
<DataGrid x:Name="dgEquipes" ItemsSource="{Binding BcpEquipes}" VerticalScrollBarVisibility="Visible"
|
||||
IsReadOnly="True" AutoGenerateColumns="False"
|
||||
SelectedItem="{Binding EquipeSelectionnee, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="51,71,295,112" >
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_equipe}" />
|
||||
<DataGridTextColumn Header="Nom d'équipe" Binding="{Binding E_nom}" Width="*" />
|
||||
<DataGridTextColumn Header="Points" Binding="{Binding E_point}" Width="*" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<Button x:Name="btnModifScore"
|
||||
Content="Modifier le score" Command="{Binding cModifierPoint}" Height="Auto" Margin="389,231,48,227" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}" RenderTransformOrigin="1.189,1.927"/>
|
||||
<TextBox HorizontalAlignment="Left" Height="23" Margin="513,138,0,0" Text="{Binding UneEquipe.Point}" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}" TextWrapping="Wrap" VerticalAlignment="Top" Width="67"/>
|
||||
<Label Content="Score de l'équipe" HorizontalAlignment="Left" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}" Margin="389,135,0,0" VerticalAlignment="Top" Width="119"/>
|
||||
<Button x:Name="btnValider"
|
||||
Content="Valider" Command="{Binding cConfirmer}" Height="Auto" Margin="389,179,146,293" RenderTransformOrigin="1.189,1.927" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}"/>
|
||||
<Button x:Name="btnAnnuler"
|
||||
Content="Annuler" Command="{Binding cAnnuler}" Height="Auto" Margin="487,179,48,293" RenderTransformOrigin="1.189,1.927" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}"/>
|
||||
</Grid>
|
||||
</Window>
|
||||
37
ProjetTheAlone/View/FicClassement.xaml.cs
Normal file
37
ProjetTheAlone/View/FicClassement.xaml.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
using ProjetTheAlone.Classes;
|
||||
using ProjetTheAlone.Gestion;
|
||||
using ProjetTheAlone.Config;
|
||||
|
||||
namespace ProjetTheAlone.View
|
||||
{
|
||||
/// <summary>
|
||||
/// Logique d'interaction pour FicClassement.xaml
|
||||
/// </summary>
|
||||
public partial class FicClassement : Window
|
||||
{
|
||||
public FicClassement(C_T_event _EventSelect)
|
||||
{
|
||||
C_T_event EventSelect = _EventSelect;
|
||||
InitializeComponent();
|
||||
DataContext = new ViewModel.VM_Classement(EventSelect);
|
||||
}
|
||||
|
||||
private void btnQuitter_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,8 +4,6 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:ProjetTheAlone"
|
||||
xmlns:System="clr-namespace:System;assembly=mscorlib"
|
||||
xmlns:StyleAlias="clr-namespace:ProjetTheAlone.Classes"
|
||||
xmlns:convert="clr-namespace:ProjetTheAlone.Converter"
|
||||
mc:Ignorable="d"
|
||||
Title="Plats" Height="482.167" Width="955.5" WindowStartupLocation="CenterScreen" WindowStyle="None">
|
||||
@@ -43,8 +41,10 @@
|
||||
|
||||
</DockPanel>
|
||||
<DockPanel Grid.Row="5" Grid.ColumnSpan="2">
|
||||
<ComboBox x:Name="TypePlat" SelectionChanged="TypePlat_SelectionChanged" SelectedValue="{Binding Typeplat, Mode=TwoWay}">
|
||||
|
||||
<ComboBox x:Name="TypePlat" SelectionChanged="TypePlat_SelectionChanged">
|
||||
<ComboBoxItem>Soupe</ComboBoxItem>
|
||||
<ComboBoxItem IsSelected="True">Plat</ComboBoxItem>
|
||||
<ComboBoxItem>Dessert</ComboBoxItem>
|
||||
</ComboBox>
|
||||
</DockPanel>
|
||||
</Grid>
|
||||
|
||||
@@ -26,7 +26,6 @@ namespace ProjetTheAlone
|
||||
public FicEncodePlat()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.TypePlat.ItemsSource = Enum.GetValues(typeof(Classes.C_T_plat.TypePlat_E)).Cast<Classes.C_T_plat.TypePlat_E>();
|
||||
DataContext = new ViewModel.VM_Plat();
|
||||
}
|
||||
|
||||
@@ -55,8 +54,8 @@ namespace ProjetTheAlone
|
||||
|
||||
private void TypePlat_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
if (DataContext != null && this.TypePlat.Text != "")
|
||||
((ViewModel.VM_Plat)DataContext).UnPlat.TypePlat = (C_T_plat.TypePlat_E)Enum.Parse(typeof(C_T_plat.TypePlat_E), this.TypePlat.SelectedValue.ToString());
|
||||
if (DataContext != null)
|
||||
((ViewModel.VM_Plat)DataContext).UnPlat.TypePlat = (C_T_plat.TypePlat_E)Enum.Parse(typeof(C_T_plat.TypePlat_E), this.TypePlat.Text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
37
ProjetTheAlone/View/FicGestionAlert.xaml
Normal file
37
ProjetTheAlone/View/FicGestionAlert.xaml
Normal file
@@ -0,0 +1,37 @@
|
||||
<Window x:Class="ProjetTheAlone.View.FicGestionAlert"
|
||||
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:ProjetTheAlone.View"
|
||||
mc:Ignorable="d"
|
||||
Title="FicGestionAlert" Height="450" Width="400">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions >
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<DockPanel>
|
||||
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" FontFamily="Rockwell">Liste Alrte</TextBlock>
|
||||
<DockPanel HorizontalAlignment="Right">
|
||||
<Button Width="auto" Content="Edit" Command="{Binding cEditer}"/>
|
||||
<Button Width="auto" Content="Del" Command="{Binding cDel}"/>
|
||||
</DockPanel>
|
||||
</DockPanel>
|
||||
<DataGrid SelectionMode="Single" x:Name="dgListeAlert" ItemsSource="{Binding AlerteList, Mode=TwoWay}" SelectedItem="{Binding AlertSelect}" VerticalScrollBarVisibility="Visible"
|
||||
IsReadOnly="True" AutoGenerateColumns="False" VerticalAlignment="Stretch" ColumnWidth="*" Grid.Row="1" HeadersVisibility="None">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Binding="{Binding}" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<Grid Grid.Row="2">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBox HorizontalAlignment="Stretch" Text="{Binding NouvelleAlert, Mode=TwoWay}" />
|
||||
<Button HorizontalAlignment="Right" Command="{Binding cAjouter}" Content="{Binding btnConfirmtxt}"></Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Window>
|
||||
31
ProjetTheAlone/View/FicGestionAlert.xaml.cs
Normal file
31
ProjetTheAlone/View/FicGestionAlert.xaml.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace ProjetTheAlone.View
|
||||
{
|
||||
/// <summary>
|
||||
/// Logique d'interaction pour FicGestionAlert.xaml
|
||||
/// </summary>
|
||||
public partial class FicGestionAlert : Window
|
||||
{
|
||||
|
||||
public FicGestionAlert()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.DataContext = new ViewModel.VM_FicGestionAlert();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user