2019-01-19 11:04:17 +01:00
|
|
|
|
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;
|
2019-01-27 11:52:08 +01:00
|
|
|
|
using ProjetTheAlone.Classes;
|
2019-01-19 11:04:17 +01:00
|
|
|
|
|
|
|
|
|
namespace ProjetTheAlone.View
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Logique d'interaction pour FicEvenementEncode.xaml
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class FicEvenementEncode : Window
|
|
|
|
|
{
|
2019-01-27 11:52:08 +01:00
|
|
|
|
public int EventSelect;
|
|
|
|
|
|
2019-01-19 11:04:17 +01:00
|
|
|
|
public FicEvenementEncode()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2019-01-24 22:24:05 +01:00
|
|
|
|
DataContext = new ViewModel.VM_Event();
|
2019-01-19 11:04:17 +01:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void btnQuitter_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void btnNewTypeEvent_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
2019-01-24 22:24:05 +01:00
|
|
|
|
FicNewtypeEvent w = new FicNewtypeEvent();
|
|
|
|
|
w.ShowDialog();
|
|
|
|
|
|
2019-01-19 11:04:17 +01:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void btnNewLieu_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
2019-01-24 22:24:05 +01:00
|
|
|
|
FicNewLieu w = new FicNewLieu();
|
|
|
|
|
w.ShowDialog();
|
|
|
|
|
}
|
2019-01-19 11:04:17 +01:00
|
|
|
|
|
2019-01-24 22:24:05 +01:00
|
|
|
|
private void btnAjoutEquipe_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
FicNewEquipe w = new FicNewEquipe();
|
|
|
|
|
w.ShowDialog();
|
2019-01-19 11:04:17 +01:00
|
|
|
|
}
|
2019-01-24 22:24:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void btnDetail_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
2019-01-27 11:52:08 +01:00
|
|
|
|
if (dgEvenementEnCours.SelectedItem != null)
|
|
|
|
|
{
|
|
|
|
|
FicDetailEvent w = new FicDetailEvent((C_T_event)dgEvenementEnCours.SelectedItem);
|
|
|
|
|
w.ShowDialog();
|
|
|
|
|
EventSelect = dgEvenementEnCours.SelectedIndex;
|
|
|
|
|
}
|
2019-01-24 22:24:05 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2019-01-19 11:04:17 +01:00
|
|
|
|
}
|
|
|
|
|
}
|