root / GES_PAC / ViewModel / SetListViewModel.cs @ 12ddf7ef
Historique | Voir | Annoter | Télécharger (824 octets)
1 |
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 |
if (IsBusy) return; |
29 |
IsBusy = true; |
30 |
await Shell.Current.GoToAsync(nameof(CreateSetView)); |
31 |
IsBusy = false; |
32 |
} |
33 |
#endregion |
34 |
} |
35 |
} |
36 |
|