Statistiques
| Branche: | Révision:

root / GES_PAC / ViewModel / ChambersViewModel.cs @ 957b1f34

Historique | Voir | Annoter | Télécharger (813 octets)

1
using GES_PAC.Model;
2
using GES_PAC.View;
3
using System.Windows.Input;
4

    
5
namespace GES_PAC.ViewModel
6
{
7
    public class ChambersViewModel : BaseViewModel
8
    {
9

    
10
        #region Attributs
11
        
12
        #endregion
13

    
14
        #region Commandes
15
        public ICommand TerminateSetCommand { get; }
16
        #endregion
17

    
18
        #region Propriétés
19

    
20
        #endregion
21

    
22
        #region Constructeurs
23
        public ChambersViewModel()
24
        {
25
            TerminateSetCommand = new Command(async () => await TerminateSet());
26
        }
27
        #endregion
28

    
29
        #region Méthodes
30
        private async Task TerminateSet()
31
        {
32
            if (IsBusy) return;
33
            IsBusy = true;
34
            await Shell.Current.GoToAsync(nameof(EndSetView));
35
            IsBusy = false;
36
        }
37
        #endregion
38
    }
39
}