Révision 18f910c6 GES_PAC/ViewModel/PersonViewModel.cs
GES_PAC/ViewModel/PersonViewModel.cs | ||
---|---|---|
5 | 5 |
{ |
6 | 6 |
public class PersonViewModel |
7 | 7 |
{ |
8 |
public ObservableCollection<Personne> Persons { get; set; } = new(); |
|
9 |
|
|
8 |
#region Attributs |
|
10 | 9 |
private static PersonViewModel _instance; |
10 |
#endregion |
|
11 |
|
|
12 |
#region Propriétés |
|
13 |
public ObservableCollection<Personne> Persons { get; set; } = new(); |
|
11 | 14 |
public static PersonViewModel Instance => _instance ??= new PersonViewModel(); |
15 |
#endregion |
|
12 | 16 |
|
17 |
#region Constructeur |
|
13 | 18 |
private PersonViewModel() { } |
19 |
#endregion |
|
14 | 20 |
} |
15 | 21 |
} |
Formats disponibles : Unified diff