add files
This commit is contained in:
12
ProjetTheAlone/ViewModel/EvenementEncode.cs
Normal file
12
ProjetTheAlone/ViewModel/EvenementEncode.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProjetTheAlone.ViewModel
|
||||
{
|
||||
class EvenementEncode
|
||||
{
|
||||
}
|
||||
}
|
||||
32
ProjetTheAlone/ViewModel/EventPasseModel.cs
Normal file
32
ProjetTheAlone/ViewModel/EventPasseModel.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProjetTheAlone.Model
|
||||
{
|
||||
public class EventPasseModel : INotifyPropertyChanged
|
||||
{
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
ObservableCollection<string> classement;
|
||||
|
||||
public ObservableCollection<string> Classement { get => classement; set { classement = value; OnPropertyChanged("Classement"); } }
|
||||
|
||||
public EventPasseModel(ObservableCollection<string> classement)
|
||||
{
|
||||
Classement = classement;
|
||||
}
|
||||
|
||||
protected void OnPropertyChanged(string name)
|
||||
{
|
||||
PropertyChangedEventHandler handler = PropertyChanged;
|
||||
if (handler != null)
|
||||
{
|
||||
handler(this, new PropertyChangedEventArgs(name));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
43
ProjetTheAlone/ViewModel/RepaModel.cs
Normal file
43
ProjetTheAlone/ViewModel/RepaModel.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.ComponentModel;
|
||||
using ProjetTheAlone.Classes;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace ProjetTheAlone.ViewModel
|
||||
{
|
||||
public class RepaModel : INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private string quand;
|
||||
private ObservableCollection<C_T_plat> listPlat = new ObservableCollection<C_T_plat>();
|
||||
|
||||
public ObservableCollection<C_T_plat> ListPlat { get => listPlat; set { listPlat = value; OnPropertyChanged("ListPlat"); OnPropertyChanged("Plat1"); OnPropertyChanged("Plat2"); OnPropertyChanged("Plat3"); } }
|
||||
public C_T_plat Plat1 { get => ListPlat[0]; }
|
||||
public C_T_plat Plat2 { get => ListPlat[1]; }
|
||||
public C_T_plat Plat3 { get => ListPlat[2]; }
|
||||
public string Quand { get => quand; set { quand = value; OnPropertyChanged("Quand"); } }
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
protected void OnPropertyChanged(string name)
|
||||
{
|
||||
PropertyChangedEventHandler handler = PropertyChanged;
|
||||
if (handler != null)
|
||||
{
|
||||
handler(this, new PropertyChangedEventArgs(name));
|
||||
}
|
||||
}
|
||||
public RepaModel()
|
||||
{
|
||||
|
||||
}
|
||||
public RepaModel(ObservableCollection<C_T_plat> ListPlat, string quand)
|
||||
{
|
||||
this.ListPlat = ListPlat;
|
||||
this.Quand = quand;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user