示例#1
0
 private void ajouterDossierButton_Click(object sender, RoutedEventArgs e)
 {
     _isNewDossier = true;
     TextBoxEditionDossier.Text = "";
     TextEditionDossier.Text    = ResourceLoader.GetForCurrentView().GetString("phraseNouveauDossier");
     ListeMdpGrid.Visibility    = Visibility.Collapsed;
     EditMdpGrid.Visibility     = Visibility.Visible;
     TextBoxEditionDossier.Focus(FocusState.Keyboard);
 }
示例#2
0
        private void editDossierButton_Click(object sender, TappedRoutedEventArgs e)
        {
            _isNewDossier = false;

            ViewModel.DossierToEdit     = (Dossier)(((AppBarButton)sender).Tag);
            ViewModel.DossierToEditName = ViewModel.DossierToEdit.Titre;

            TextEditionDossier.Text = ResourceLoader.GetForCurrentView().GetString("phraseModifierDossier");
            ListeMdpGrid.Visibility = Visibility.Collapsed;
            EditMdpGrid.Visibility  = Visibility.Visible;
            TextBoxEditionDossier.Focus(FocusState.Keyboard);
        }