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.Model { public class RepaModel : INotifyPropertyChanged { private ObservableCollection listPlat = new ObservableCollection(); public ObservableCollection ListPlat { get => listPlat; set { listPlat = value; OnPropertyChanged("ListPlat"); } } public event PropertyChangedEventHandler PropertyChanged; protected void OnPropertyChanged(string name) { PropertyChangedEventHandler handler = PropertyChanged; if (handler != null) { handler(this, new PropertyChangedEventArgs(name)); } } public RepaModel() { } } }