Révision 957b1f34 GES_PAC/ViewModel/SetListViewModel.cs

Voir les différences:

GES_PAC/ViewModel/SetListViewModel.cs
27 27
        #region Commandes
28 28
        public ICommand GoToCreateSetCommand { get; }
29 29
        public ICommand GoToLastSetCommand { get; }
30
        public ICommand GoToEndDayCommand { get; }
30 31
        #endregion
31 32

  
32 33
        #region Constructeur
......
34 35
        {
35 36
            GoToCreateSetCommand = new Command(async () => await GoToCreateSetPage());
36 37
            GoToLastSetCommand = new Command(async () => await GoToLastSetPage());
38
            GoToEndDayCommand = new Command(async () => await GoToEndDayPage());
37 39

  
38 40
            HasLastSet = JourneeViewModel.Instance.GetCurrentDay().HasAnySet();
39 41
        }
......
55 57
            await Shell.Current.GoToAsync(nameof(ChambersView));
56 58
            IsBusy = false;
57 59
        }
60
        private async Task GoToEndDayPage()
61
        {
62
            if (IsBusy) return;
63
            IsBusy = true;
64
            await Shell.Current.GoToAsync(nameof(EndDayView));
65
            IsBusy = false;
66
        }
58 67
        #endregion
59 68
    }
60 69
}

Formats disponibles : Unified diff