protected override async void OnNavigatedTo(NavigationEventArgs e)
 {
     parameter = (ParameterToPass)e.Parameter;            
     listInstrByCatVM.NomCategorie = parameter.Categorie.Nom;
     await listInstrByCatVM.getAsyncInstrumentParCategories();
     ListInstruments.ItemsSource = listInstrByCatVM.ListInstruments;
     isAdmin = parameter.IsAdmin;
     addMusicianBtn.IsEnabled = isAdmin;
     deleteMusicianBtn.IsEnabled = isAdmin;           
 }
 protected override async  void OnNavigatedTo(NavigationEventArgs e)
 {
     parameter = (ParameterToPass)e.Parameter;
     isAdmin = parameter.IsAdmin;
     addMusicianBtn.IsEnabled = isAdmin;
     deleteMusicianBtn.IsEnabled = isAdmin;
     detailsMusicienVM.NomMusicien = parameter.Musicien.Nom;
     await detailsMusicienVM.getAsyncDetailMusicien();
     detailsMusicianPanel.DataContext = detailsMusicienVM;
 }
 protected override async void OnNavigatedTo(NavigationEventArgs e)
 {
     parameter = (ParameterToPass)e.Parameter;            
     isAdmin = parameter.IsAdmin;
     addMusicianBtn.IsEnabled = isAdmin;
     deleteMusicianBtn.IsEnabled = isAdmin;
     detailsInstrumentVM.NomInstrument = parameter.Instrument.Nom;
     await detailsInstrumentVM.getAsyncDetailInstrument();
     DetailsInstrumentPanel.DataContext = detailsInstrumentVM;                      
 }
 protected override async void OnNavigatedTo(NavigationEventArgs e)
 {
     parameter = (ParameterToPass)e.Parameter;
     listMusicianByInstrVM.NomInstrument = parameter.Instrument.Nom;
     isAdmin = parameter.IsAdmin;
     addMusicianBtn.IsEnabled = isAdmin;
     deleteMusicianBtn.IsEnabled = isAdmin;
     await listMusicianByInstrVM.getAsyncNomMusician();
     ListMusicianByInstr.ItemsSource = listMusicianByInstrVM.ListMusiciens;
 }
 private void CategoryBtn_Click(object sender, ItemClickEventArgs e)
 {
     var categorie = (Categorie)((ItemClickEventArgs)e).ClickedItem;
     ParameterToPass param = new ParameterToPass(isAdmin, categorie);
     Frame.Navigate(typeof(ListInstrByCatMusicianPage), param);
 }
 private void InstrumentBtn_Click(object sender, ItemClickEventArgs e)
 {
     Instrument instrClicked = (Instrument)((ItemClickEventArgs)e).ClickedItem;
     var parameter = new ParameterToPass(isAdmin, instrClicked);
     Frame.Navigate(typeof(ListMusicianByInstrPage), parameter);
 }
 private void MusicianBtn_Click(object sender, ItemClickEventArgs e)
 {
     Musicien musicienClicked = (Musicien)((ItemClickEventArgs)e).ClickedItem;
     var parameter = new ParameterToPass(isAdmin, musicienClicked);
     Frame.Navigate(typeof(DetailsMusicianPage), parameter);
 }