Révision 7b67ff55 INRAETemplate/ViewModel/VivantViewModel.cs
INRAETemplate/ViewModel/VivantViewModel.cs | ||
---|---|---|
1 | 1 |
using INRAETemplate.DAO; |
2 | 2 |
using INRAETemplate.Model; |
3 |
using INRAETemplate.Services; |
|
3 | 4 |
using INRAETemplate.View; |
4 | 5 |
using INRAETemplate.ViewModel.Base; |
5 | 6 |
using System; |
... | ... | |
14 | 15 |
{ |
15 | 16 |
public class VivantViewModel : BaseViewModel |
16 | 17 |
{ |
18 |
#region Services |
|
19 |
|
|
20 |
private readonly ConnexionService connService; |
|
21 |
|
|
22 |
#endregion |
|
23 |
|
|
17 | 24 |
#region Attributs |
18 | 25 |
private int vivantId; |
19 | 26 |
private string vivantNom; |
... | ... | |
83 | 90 |
#endregion |
84 | 91 |
|
85 | 92 |
#region Constructeurs |
86 |
public VivantViewModel() |
|
93 |
|
|
94 |
public VivantViewModel(ConnexionService connService) |
|
87 | 95 |
{ |
96 |
this.connService = connService; |
|
88 | 97 |
//Alimentation du Picker à partir de VivantDAO |
89 | 98 |
Vivants = new ObservableCollection<Vivant>(VivantDAO.GetVivants()); |
90 | 99 |
EditionCommand = new Command(async () => await Edition()); |
91 | 100 |
} |
101 |
|
|
92 | 102 |
#endregion |
93 | 103 |
|
94 | 104 |
#region Méthodes |
Formats disponibles : Unified diff