root / GES_PAC / ViewModel / PlaceViewModel.cs @ 42456640
Historique | Voir | Annoter | Télécharger (658 octets)
1 |
using GES_PAC.Model; |
---|---|
2 |
using System.Collections.ObjectModel; |
3 |
|
4 |
|
5 |
namespace GES_PAC.ViewModel |
6 |
{ |
7 |
public class PlaceViewModel |
8 |
{ |
9 |
#region Attributs |
10 |
private static PlaceViewModel _instance; |
11 |
#endregion |
12 |
|
13 |
#region Propriétés |
14 |
public ObservableCollection<Lieu> Places { get; set; } = new(); |
15 |
public static PlaceViewModel Instance => _instance ??= new PlaceViewModel(); |
16 |
#endregion |
17 |
|
18 |
#region Constructeur |
19 |
private PlaceViewModel() { |
20 |
Places.Add(new Lieu("Elevage Langlade", "INRAE", "Mouton")); // Ajout d'un lieu par défaut pour les tests |
21 |
} |
22 |
#endregion |
23 |
} |
24 |
} |