public RendezVousViewModel(INavigationService navigationService = null) { _navigationService = navigationService; _permanence = new Permanence(); getAllPerma(); rdv = new RendezVous(); }
public PageAdminViewModel(INavigationService navigationService = null) { _navigationService = navigationService; _problem = new ObservableCollection<RendezVous>(); _permanence = new Permanence(); getAllPerma(); }
public MainPageViewModel(INavigationService navigationService = null) { _navigationService = navigationService; dataAccess = new DataAccess(); _faq = new ObservableCollection<FAQ>(); getAllFAQ(); _permanence = new Permanence(); getAllPerma(); }
public async void getAllPerma() { if (CheckNet()) { List<Permanence> lstPerma = await dataAccess.getAllPerma(); DateTime dateAjd = DateTime.Today; foreach (var item in lstPerma) { DateTime td = Convert.ToDateTime(item.datePerma); if (td > dateAjd && _perma.heureDebutPerma == 0) { _perma = item; } } } else exit(); }