root / GES_PAC / ViewModel / SetListViewModel.cs @ ba296a27
Historique | Voir | Annoter | Télécharger (792 octets)
1 | 09d4a0de | lbihannic | using System.Windows.Input; |
---|---|---|---|
2 | using GES_PAC.Services; |
||
3 | using GES_PAC.View; |
||
4 | |||
5 | |||
6 | namespace GES_PAC.ViewModel |
||
7 | { |
||
8 | public class SetListViewModel : BaseViewModel |
||
9 | { |
||
10 | #region Services |
||
11 | private readonly ConnexionService connService; |
||
12 | #endregion |
||
13 | |||
14 | #region Commandes |
||
15 | public ICommand GoToCreateSetCommand { get; } |
||
16 | #endregion |
||
17 | |||
18 | #region Constructeur |
||
19 | public SetListViewModel() |
||
20 | { |
||
21 | GoToCreateSetCommand = new Command(async () => await GoToCreateSetPage()); |
||
22 | } |
||
23 | #endregion |
||
24 | |||
25 | #region Méthodes |
||
26 | private async Task GoToCreateSetPage() |
||
27 | { |
||
28 | IsBusy = true; |
||
29 | await Shell.Current.GoToAsync(nameof(CreateSetView)); |
||
30 | IsBusy = false; |
||
31 | } |
||
32 | #endregion |
||
33 | } |
||
34 | } |