ProjetThe/ProjetTheAlone/View/FicDetailEvent.xaml.cs

63 lines
1.6 KiB
C#
Raw Normal View History

2019-01-24 22:24:05 +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;
using ProjetTheAlone.Gestion;
using ProjetTheAlone.Config;
2019-01-24 22:24:05 +01:00
namespace ProjetTheAlone.View
{
/// <summary>
/// Logique d'interaction pour FicDetailEvent.xaml
/// </summary>
public partial class FicDetailEvent : Window
{
2019-01-27 11:52:08 +01:00
private string chConn = Settings2.Default.schCon;
C_T_event EventSelect;
public FicDetailEvent(C_T_event _EventSelect)
2019-01-24 22:24:05 +01:00
{
2019-01-27 11:52:08 +01:00
EventSelect = _EventSelect;
2019-01-24 22:24:05 +01:00
InitializeComponent();
2019-01-27 11:52:08 +01:00
DataContext =new ViewModel.VM_DetailEvent(EventSelect);
2019-01-24 22:24:05 +01:00
}
private void btnQuitter_Click(object sender, RoutedEventArgs e)
{
Close();
}
2019-01-27 11:52:08 +01:00
private void btnClassement_Click(object sender, RoutedEventArgs e)
{
FicClassement w = new FicClassement(EventSelect);
w.ShowDialog();
}
public void setDataContext(C_T_event _EventSelect)
{
EventSelect = _EventSelect;
DataContext = new ViewModel.VM_DetailEvent(EventSelect);
}
public bool IsClosed { get; private set; }
protected override void OnClosed(EventArgs e)
{
base.OnClosed(e);
IsClosed = true;
}
2019-01-24 22:24:05 +01:00
}
}