protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); ViewModel = new ImportExportViewModel(); GridTitre.Background = ContexteAppli.GetColorTheme(); if (e.Parameter is ImportExportEnum) { ViewModel.Mode = ((ImportExportEnum)e.Parameter); ViewModel.SelectedDossier = AbstractViewModel.SelectedDossierAbstract; switch (ViewModel.Mode) { case ImportExportEnum.Import: TitrePage.Text = ResourceLoader.GetForCurrentView().GetString("phraseImporter"); DossierTextBox.Text = ResourceLoader.GetForCurrentView().GetString("phraseExpImport"); FormatComboBox.IsEnabled = false; EraseCheckBox.Visibility = Visibility.Visible; break; case ImportExportEnum.Export: TitrePage.Text = ResourceLoader.GetForCurrentView().GetString("phraseExporter"); DossierTextBox.Text = ResourceLoader.GetForCurrentView().GetString("phraseExpExport"); break; } AfficherResultatOutil(false); } }
/// <summary> /// Se lance lors de l'ouverture de la page /// </summary> /// <param name="e"></param> protected override async void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); ViewModel = new StartPageViewModel((ModeOuvertureEnum)e.Parameter); StackTitre.Background = ContexteAppli.GetColorTheme(); ButtonRecupPass.Visibility = (ContexteAppli.IsFichierRoamingOuvert && ContexteAppli.IsCortanaActive && await ImageUnlockBusiness.FileExist() && ViewModel.ModeSelect.Equals(ModeOuvertureEnum.FichierDejaExistant)) ? Visibility.Visible : Visibility.Collapsed; if (ViewModel.ModeSelect.Equals(ModeOuvertureEnum.FichierDejaExistant)) { TextTitre.Text = ResourceLoader.GetForCurrentView().GetString("phraseAcceuilExistant"); GridConfirm.Visibility = Visibility.Collapsed; ProgressBarForce.Visibility = Visibility.Collapsed; ButtonReinit.Visibility = ContexteAppli.IsFichierRoamingOuvert? Visibility.Visible : Visibility.Collapsed; } if (ViewModel.ModeSelect.Equals(ModeOuvertureEnum.FichierACreer)) { TextTitre.Text = ResourceLoader.GetForCurrentView().GetString("phraseAcceuilNouveau"); GridConfirm.Visibility = Visibility.Visible; ProgressBarForce.Visibility = Visibility.Visible; ButtonReinit.Visibility = Visibility.Collapsed; } PasswordBoxMdp.Focus(FocusState.Keyboard); Frame.BackStack.Clear(); }
public ChiffreDechiffreFichierView() { InitializeComponent(); GridTitre.Background = ContexteAppli.GetColorTheme(); _timerCapsLock = new DispatcherTimer(); _timerCapsLock.Tick += TimerCapsLockOnTick; _timerCapsLock.Start(); }
/// <summary> /// Supprime une sous catégorie /// </summary> /// <returns>la task</returns> public async Task SuppressionSousCategorie() { await _categorieBusiness.DeleteSousCategorie(SelectedSousCategorie.Id); await ContexteAppli.GenerateCategorieMouvement(); GenererListeCategories(); }
/// <summary> /// Change la langue de l'application /// </summary> /// <param name="langue">la nouvelle langue</param> public async Task ChangeLangueApplication(ListeLangues.LanguesStruct langue) { Strings.ListeLangues.ChangeLangueAppli(langue); await _applicationBusiness.ChangeIdLangue(langue); DeviseUtils.GeneratePays(); DeviseUtils.GenerateDevise(); await ContexteAppli.GenerateCategorieMouvement(); }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); StackPanelSecurite.Visibility = (ContexteAppli.IsFichierRoamingOuvert) ? Visibility.Visible : Visibility.Collapsed; ViewModel = new ParamsViewModel(); GridTitre.Background = ContexteAppli.GetColorTheme(); }
/// <summary> /// Réinitialise l'application /// </summary> /// <returns>la task</returns> public async Task ReinitAppli() { if (ContexteAppli.IsFichierRoamingOuvert) { if (await ContexteAppli.ReinitAppli()) { ((Frame)Window.Current.Content).Navigate(typeof(StartPageView), ModeOuvertureEnum.FichierACreer); } } }
public AboutPageView() { InitializeComponent(); GridTitre.Background = ContexteAppli.GetColorTheme(); NomAppli.Text = ContexteStatic.NomAppli; Version.Text = ContexteStatic.Version; Dev.Text = ContexteStatic.Developpeur; }
/// <summary> /// Charge les données de l'application et ouvre le shell /// </summary> public static async void OpenShell() { //Chargement des données var applicationBusiness = new ApplicationBusiness(); await applicationBusiness.Initialization; //mise en place de la configuration await applicationBusiness.CheckVersion(); ModeApp = await applicationBusiness.GetModeAppli(); IsRoamingCategorieActive = await applicationBusiness.GetRoamingCategorieActive(); IsRoamingEcheancierActive = await applicationBusiness.GetRoamingEcheancierActive(); IdCouleurBackground = await applicationBusiness.GetIdCouleurBackGround(); var idLangue = await applicationBusiness.GetLangueAppli(); if (!string.IsNullOrWhiteSpace(idLangue)) { ListeLangues.ChangeLangueAppli(idLangue); } //génère les catégories await ContexteAppli.GenerateCategorieMouvement(); //a n'éxécuter que s'il s'agit de l'appareil principal if (ModeApp == AppareilEnum.ModeAppareilPrincipal) { //charge les mouvements donné par les appareils secondaires await ContexteAppli.ChargerMouvementRoaming(); //controle les échéanciers await ContexteAppli.ControleEcheancier(); } //sauvegarde den tant que dernier démarrage await applicationBusiness.SetDateDernierDemarrage(); //Chargement de la page principale puis de sa frame var rootFrame = Window.Current.Content as Frame; rootFrame = new Frame(); Window.Current.Content = rootFrame; rootFrame.Navigate(typeof(Shell)); AppShell = rootFrame.Content as Shell; AppShell.NavigateFrame(typeof(AcceuilView)); }
public async void Current_DataChanged(ApplicationData sender, object args) { try { if (AppShell != null) { await ContexteAppli.ChargerMouvementRoaming(); await ContexteAppli.GenerateCategorieMouvement(); } } catch (Exception) { } }
protected override async void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); GridTitre.Background = ContexteAppli.GetColorTheme(); if (e.Parameter is StorageFile) { await ViewModel.Init((StorageFile)e.Parameter); } if (e.Parameter is ObservableCollection <MotDePasse> ) { ViewModel.Init((ObservableCollection <MotDePasse>)e.Parameter); } ChangeNomButtonValid(); //ViewModel.ListeMotDePasses = new ObservableCollection<MotDePasse>(ViewModel.ListeMotDePasses); }
protected override async void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); GridTitre.Background = ContexteAppli.GetColorTheme(); TextTitre.Text = ResourceLoader.GetForCurrentView().GetString("phraseAcceuilExistant"); PasswordBoxMdp.Focus(FocusState.Keyboard); ViewModel = new ResultCortanaViewModel(e.Parameter as string); if (await ViewModel.LanceRechercheSansMotDePasse()) { GridMdp.Visibility = Visibility.Collapsed; GridResult.Visibility = Visibility.Visible; } else { GridMdp.Visibility = Visibility.Visible; GridResult.Visibility = Visibility.Collapsed; } }
protected override async void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); GridTitre.Background = ContexteAppli.GetColorTheme(); ViewModel = new SecureImageViewModel((OuvertureSecureImageEnum)e.Parameter); await ViewModel.LoadSecurity(); if (ViewModel.Mode == OuvertureSecureImageEnum.MODE_CHANGEMENT_IMAGE) { GridChargement.Visibility = Visibility.Visible; GridDeblocage.Visibility = Visibility.Collapsed; AfficherPoints(); } if (ViewModel.Mode == OuvertureSecureImageEnum.MODE_DEBLOCAGE) { GridDeblocage.Visibility = Visibility.Visible; GridChargement.Visibility = Visibility.Collapsed; } }
protected override async void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); ViewModel = new MainPageViewModel(); ViewModel.OuvrirDossier(AbstractViewModel.SelectedDossierAbstract); DerniereSynchroText.Visibility = (ContexteAppli.IsFichierRoamingOuvert) ? Visibility.Visible : Visibility.Collapsed; var couleur = ContexteAppli.GetColorTheme(); BgColor = couleur; DossierSplitview.Background = couleur; DossierSplitview.PaneBackground = couleur; GridTitre.Background = couleur; await ViewModel.MajDerniereSynchro(); }
/// <summary> /// Sauvegarde la modification ou l'ajout de la donnée /// </summary> /// <returns>les erreurs sinon une chaine vide</returns> public async Task <string> Save() { var retour = Validate(); if (string.IsNullOrWhiteSpace(retour)) { LibelleSelected = StringUtils.FirstLetterUpper(LibelleSelected); switch (ModeOuverture) { case ModeOuvertureGestionCategorieEnum.OuvertureAjouterCategorie: await _categorieBusiness.AddCategorie(LibelleSelected); break; case ModeOuvertureGestionCategorieEnum.OuvertureAjouterSousCategorie: await _categorieBusiness.AddSousCategorie(LibelleSelected, SelectedCategorie.Id, SelectedCategorie.IsCategPerso); break; case ModeOuvertureGestionCategorieEnum.OuvertureModifierCategorie: SelectedCategorie.Libelle = LibelleSelected; await _categorieBusiness.ModifierCategorie(SelectedCategorie); break; case ModeOuvertureGestionCategorieEnum.OuvertureModifierSousCategorie: SelectedSousCategorie.Libelle = LibelleSelected; await _categorieBusiness.ModifierSousCategorie(SelectedSousCategorie); break; } await ContexteAppli.GenerateCategorieMouvement(); GenererListeCategories(); AnnulerModifAjout(); } return(retour); }
/// <summary> /// Invoked when the application is launched normally by the end user. Other entry points /// will be used such as when the application is launched to open a specific file. /// </summary> /// <param name="e">Details about the launch request and process.</param> protected override async void OnLaunched(LaunchActivatedEventArgs e) { #if DEBUG if (System.Diagnostics.Debugger.IsAttached) { DebugSettings.EnableFrameRateCounter = true; } #endif var rootFrame = Window.Current.Content as Frame; await ContexteAppli.Init(false); //chargement de la page d'acceuil rootFrame = new Frame(); Window.Current.Content = rootFrame; rootFrame.NavigationFailed += OnNavigationFailed; rootFrame.Navigated += OnNavigated; SystemNavigationManager.GetForCurrentView().BackRequested += OnBackRequested; SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = rootFrame.CanGoBack ? AppViewBackButtonVisibility.Visible : AppViewBackButtonVisibility.Collapsed; var paramBusiness = new ParamBusiness(); await paramBusiness.Initialization; if (await paramBusiness.NeedUpdate()) { rootFrame.Navigate(typeof(UpdateVersion)); Window.Current.Activate(); } else { OpenAppli(); } }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); GridTitre.Background = ContexteAppli.GetColorTheme(); ViewModel = new AfficherPasswordViewModel(e.Parameter as MotDePasse); _timerLogin = new DispatcherTimer { Interval = new TimeSpan(0, 0, 1) }; _timerPassword = new DispatcherTimer { Interval = new TimeSpan(0, 0, 1) }; _timerCleanClipBoard = new DispatcherTimer { Interval = new TimeSpan(0, 0, 1) }; _timerCleanClipBoard.Tick += timerClean_Tick; _timerLogin.Tick += timerLogin_Tick; _timerPassword.Tick += timerPassword_Tick; _compteurSecondeTimerLogin = 0; _compteurSecondeTimerPassword = 0; _isTimerLoginLaunch = false; _isTimerPasswordLaunch = false; }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); GridTitre.Background = ContexteAppli.GetColorTheme(); //si ont fournit un dossier c'est qu'on veut y ajouter un mot de passe var dossier = e.Parameter as Dossier; if (dossier != null) { ViewModel = new EditPasswordViewModel(dossier); TitrePage.Text = ResourceLoader.GetForCurrentView().GetString("phraseAjout"); } //si c'est un mot de passe, c'est qu'ont souhaite le modifier var motDePasse = e.Parameter as MotDePasse; if (motDePasse != null) { ViewModel = new EditPasswordViewModel(motDePasse); TitrePage.Text = ResourceLoader.GetForCurrentView().GetString("phraseModification"); } }
public OutilsView() { InitializeComponent(); GridTitre.Background = ContexteAppli.GetColorTheme(); }
/// <summary> /// importe les données /// </summary> /// <returns>true si ok</returns> public async Task <bool> Restauration() { try { //deserialization string xml; if (IsMdp) { var buffer = await FileIO.ReadBufferAsync(Fichier); byte[] inFile = buffer.ToArray(); xml = CryptUtils.AesDecryptByteArrayToString(inFile, MotDePasse, MotDePasse); } else { xml = await FileIO.ReadTextAsync(Fichier, Windows.Storage.Streams.UnicodeEncoding.Utf8); } var xsb = new XmlSerializer(typeof(SauvegardeModel)); var rd = new StringReader(xml); var resultImport = xsb.Deserialize(rd) as SauvegardeModel; //effacement des données await _applicationBusiness.DeleteForRestauration(); //restauration //appli await _applicationBusiness.ChangeIdCouleurBackground(resultImport.Application.IdBackGround); await _applicationBusiness.ChangeIdLangue(ListeLangues.GetLangueById(resultImport.Application.IdLangue)); ListeLangues.ChangeLangueAppli(resultImport.Application.IdLangue); //banque et compte foreach (var banque in resultImport.ListeBanque) { await _banqueBusiness.AjouterBanqueFmRestauration(banque); foreach (var compte in banque.ListeCompte) { await _compteBusiness.AjouterCompteFmRestauration(compte); } } //solde init foreach (var soldeInitial in resultImport.ListeSoldeInit) { await _compteBusiness.AjouterSoldeInitialFmRestauration(soldeInitial); } //categorie foreach (var category in resultImport.ListeCategorie) { await _categorieBusiness.AjouterCategorieFmRestauration(category); } //sous categorie foreach (var sousCategory in resultImport.ListeSousCategorie) { await _categorieBusiness.AjouterSousCategorieFmRestauration(sousCategory); } //échéancier foreach (var echeancier in resultImport.ListeEcheancier) { await _echeancierBusiness.AjouterEcheancierFmRestauration(echeancier); } //mouvement foreach (var mouvement in resultImport.ListeMouvement) { await _mouvementBusiness.AjouterMouvementFmRestauration(mouvement); } //regénère les catégories await ContexteAppli.GenerateCategorieMouvement(); } catch (Exception) { return(false); } return(true); }
/// <summary> /// Genere une liste de categories /// </summary> private void GenerateCategories() { ListeCategorie.Source = ContexteAppli.GenerateCategoriesGroup(); }
/// <summary> /// Méthode se lancant lors de l'appel de cortana pour l'appli /// </summary> /// <param name="taskInstance"></param> public async void Run(IBackgroundTaskInstance taskInstance) { //lancement de cortana, récupération des objets nécéssaires _serviceDeferral = taskInstance.GetDeferral(); taskInstance.Canceled += (sender, reason) => _serviceDeferral?.Complete(); var triggerDetails = taskInstance.TriggerDetails as AppServiceTriggerDetails; _voiceCommandServiceConnection = VoiceCommandServiceConnection.FromAppServiceTriggerDetails(triggerDetails); _voiceCommandServiceConnection.VoiceCommandCompleted += (sender, args) => _serviceDeferral?.Complete(); var identifiant = (await _voiceCommandServiceConnection.GetVoiceCommandAsync()).Properties["site"][0].ToLower(); string message; var openApp = false; var openTiles = false; var tiles = new List <VoiceCommandContentTile>(); //Initialisation de l'appli await ContexteAppli.Initialize(false, null); //si le fichier existe if (await PasswordBusiness.DoesFileCypherExist()) { //si cortana est autorisé if (ContexteAppli.IsCortanaActive) { //récupération du mot de passe var mdp = await CortanaBusiness.GetPasswordUser(); if (!string.IsNullOrWhiteSpace(mdp)) { //chargement du fichier if (await PasswordBusiness.Load(mdp, false)) { tiles = CortanaBusiness.GetMotDePasseTile(identifiant, ContexteAppli.DossierMere); if (tiles.Count == 0) { message = GetString("cortanaAucunIdentifiant"); } else if (tiles.Count > 10) { message = GetString("cortanaPlusieursResultats"); openApp = true; } else { message = GetString("cortanaIdentifiantsTrouves"); openTiles = true; } } else { message = GetString("cortanaEchecFichier"); openApp = true; } } else { message = GetString("cortanaEchecFichier"); openApp = true; } } else { message = GetString("cortanaLanceApp"); openApp = true; } } else { message = GetString("cortanaAucunIdentifiant"); } var userPrompt = new VoiceCommandUserMessage { DisplayMessage = message, SpokenMessage = message }; if (openApp) { var response = VoiceCommandResponse.CreateResponse(userPrompt); response.AppLaunchArgument = identifiant; await _voiceCommandServiceConnection.RequestAppLaunchAsync(response); } else if (openTiles) { var response = VoiceCommandResponse.CreateResponse(userPrompt, tiles); await _voiceCommandServiceConnection.ReportSuccessAsync(response); } else { var response = VoiceCommandResponse.CreateResponse(userPrompt); await _voiceCommandServiceConnection.ReportSuccessAsync(response); } }
/// <summary> /// Méthode de lancement de l'appel de cortana /// </summary> /// <param name="taskInstance"></param> public async void Run(IBackgroundTaskInstance taskInstance) { //lancement _serviceDeferral = taskInstance.GetDeferral(); taskInstance.Canceled += (sender, reason) => _serviceDeferral?.Complete(); var triggerDetails = taskInstance.TriggerDetails as AppServiceTriggerDetails; _voiceCommandServiceConnection = VoiceCommandServiceConnection.FromAppServiceTriggerDetails(triggerDetails); _voiceCommandServiceConnection.VoiceCommandCompleted += (sender, args) => _serviceDeferral?.Complete(); var voicecommand = await _voiceCommandServiceConnection.GetVoiceCommandAsync(); await ContexteAppli.Init(true); var filmBusiness = new FilmBusiness(); await filmBusiness.Initialization; var movieDbBusiness = new MovieDbBusiness(); var tiles = new List <VoiceCommandContentTile>(); switch (voicecommand.CommandName) { case "showVoirFilm": var listeFilmVoir = await filmBusiness.GetFilmSuggestionVoir(); tiles.AddRange(listeFilmVoir.Select(film => new VoiceCommandContentTile { ContentTileType = VoiceCommandContentTileType.TitleOnly, Title = film.Titre, AppContext = film })); break; case "showFilm": var listeFilm = await filmBusiness.GetFilmSuggestionAleatoire(); tiles.AddRange(listeFilm.Select(film => new VoiceCommandContentTile { ContentTileType = VoiceCommandContentTileType.TitleOnly, Title = film.Titre, AppContext = film })); break; case "showFilmFav": var listeFilmFav = await filmBusiness.GetFilmSuggestionFavoris(); tiles.AddRange(listeFilmFav.Select(film => new VoiceCommandContentTile { ContentTileType = VoiceCommandContentTileType.TitleOnly, Title = film.Titre, AppContext = film })); break; case "showAcheter": var listeFilmPosseder = await filmBusiness.GetFilmSuggestionPosseder(); tiles.AddRange(listeFilmPosseder.Select(film => new VoiceCommandContentTile { ContentTileType = VoiceCommandContentTileType.TitleOnly, Title = film.Titre, AppContext = film })); break; case "showFilmMoment": var listeFilmMoment = (await movieDbBusiness.GetPopularMovie()).Take(9); tiles.AddRange(listeFilmMoment.Select(film => new VoiceCommandContentTile { ContentTileType = VoiceCommandContentTileType.TitleOnly, Title = film.title, AppContext = film })); break; case "showSerieMoment": var listeserieMoment = (await movieDbBusiness.GetPopularSerie()).Take(9); tiles.AddRange(listeserieMoment.Select(film => new VoiceCommandContentTile { ContentTileType = VoiceCommandContentTileType.TitleOnly, Title = film.name, AppContext = film })); break; } var userPrompt = new VoiceCommandUserMessage(); if (tiles.Count > 0) { userPrompt.DisplayMessage = GetString("filmTrouve"); userPrompt.SpokenMessage = GetString("filmTrouve"); } else { userPrompt.DisplayMessage = GetString("aucunResultat"); userPrompt.SpokenMessage = GetString("aucunResultat"); } if (tiles.Count == 0) { var response = VoiceCommandResponse.CreateResponse(userPrompt); await _voiceCommandServiceConnection.ReportSuccessAsync(response); } else { var response = VoiceCommandResponse.CreateResponse(userPrompt, tiles); await _voiceCommandServiceConnection.ReportSuccessAsync(response); } }
//change la couleur du thème private async void Rectangle_Tapped(object sender, TappedRoutedEventArgs e) { await ViewModel.ChangeCouleur(((SolidColorBrush)((Rectangle)sender).Tag)); GridTitre.Background = ContexteAppli.GetColorTheme(); }
/// <summary> /// Retourne la couleur de thème à appliquer /// </summary> /// <returns></returns> public SolidColorBrush GetCouleur() { return(ContexteAppli.SetColorTheme(ContexteStatic.ListeCouleur[App.IdCouleurBackground])); }
/// <summary> /// Change la couleur du shell à partir de l'id de la couleur /// </summary> public void ChangeCouleurShell() { MainSplitView.PaneBackground = ContexteAppli.SetColorTheme(ContexteStatic.ListeCouleur[App.IdCouleurBackground]); }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); ViewModel = new PartageViewModel(); GridTitre.Background = ContexteAppli.GetColorTheme(); }
/// <summary> /// Lance l'application /// </summary> /// <param name="recherche">la recherche commandé par cortana sinon null</param> /// <param name="fichier">le fichier à ouvrir dans la page de partage</param> /// <returns></returns> private async Task LaunchApp(string recherche, StorageFile fichier) { var rootFrame = Window.Current.Content as Frame; // Do not repeat app initialization when the Window already has content, // just ensure that the window is active if (rootFrame == null) { // Create a Frame to act as the navigation context and navigate to the first page rootFrame = new Frame(); rootFrame.NavigationFailed += OnNavigationFailed; rootFrame.Navigated += OnNavigated; // Place the frame in the current Window Window.Current.Content = rootFrame; // Register a handler for BackRequested events and set the // visibility of the Back button SystemNavigationManager.GetForCurrentView().BackRequested += OnBackRequested; SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = rootFrame.CanGoBack ? AppViewBackButtonVisibility.Visible : AppViewBackButtonVisibility.Collapsed; } if (rootFrame.Content == null) { await ContexteAppli.Initialize(true, fichier); bool ouvertureReussi; if (fichier != null) { if (StringUtils.GetExtension(fichier.Name) == ContexteStatic.Extension) { ouvertureReussi = rootFrame.Navigate(typeof(StartPageView), ModeOuvertureEnum.FichierDejaExistant); } else if (StringUtils.GetExtension(fichier.Name) == ContexteStatic.ExtensionPartage) { if (await PasswordBusiness.DoesFileCypherExist()) { ouvertureReussi = rootFrame.Navigate(typeof(RecupPasswordView), fichier); } else { ouvertureReussi = rootFrame.Navigate(typeof(StartPageView), ModeOuvertureEnum.FichierACreer); } } else { ouvertureReussi = false; } } else { if (await PasswordBusiness.DoesFileCypherExist()) { if (!string.IsNullOrWhiteSpace(recherche)) { ouvertureReussi = rootFrame.Navigate(typeof(ResultCortanaView), recherche); } else { ouvertureReussi = rootFrame.Navigate(typeof(StartPageView), ModeOuvertureEnum.FichierDejaExistant); } } else { ouvertureReussi = rootFrame.Navigate(typeof(StartPageView), ModeOuvertureEnum.FichierACreer); } } if (!ouvertureReussi) { throw new Exception(ResourceLoader.GetForCurrentView("Errors").GetString("erreurDemarrage")); } Window.Current.Activate(); } }