root / GES_PAC / ViewModel / MainViewModel.cs @ eac868a1
Historique | Voir | Annoter | Télécharger (437 octets)
1 | 65ad7e66 | Lucas Bihannic | using GES_PAC.View; |
---|---|---|---|
2 | |||
3 | namespace GES_PAC.ViewModel |
||
4 | { |
||
5 | public class MainViewModel : BaseViewModel |
||
6 | { |
||
7 | public Command GoToCreateDayCommand { get; } |
||
8 | public MainViewModel() |
||
9 | { |
||
10 | GoToCreateDayCommand = new Command(async () => await GoToCreateDayPage()); |
||
11 | } |
||
12 | |||
13 | private async Task GoToCreateDayPage() |
||
14 | { |
||
15 | await Shell.Current.GoToAsync(nameof(CreateDayView)); |
||
16 | } |
||
17 | } |
||
18 | } |