private void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            WindowAccueil win = new WindowAccueil();

            win.Show();
            this.Close();
        }
Exemplo n.º 2
0
        private void ButtonRetour_Click(object sender, RoutedEventArgs e)
        {
            WindowAccueil winAccueil = new WindowAccueil();

            //Affichage de la WindowAccueil
            winAccueil.Show();
            //Fermeture de la WindowEnvoyerMail
            this.Close();
        }
Exemplo n.º 3
0
        private void ButtonAnnuler_Click(object sender, RoutedEventArgs e)
        {
            WindowAccueil winAccueil = new WindowAccueil();

            //Affichage de la page Accueil
            winAccueil.Show();
            //Fermeture de la WindowRecherche
            this.Close();
        }
        private void ButtonRetour_Click(object sender, RoutedEventArgs e)
        {
            string current_page = FrameReceptionMail.NavigationService.Content.GetType().Name.ToString();

            switch (current_page)
            {
            case "PageDetailMail":
                NavigateReceptionMail.Navigate(FrameReceptionMail.NavigationService, new Uri("./RecevoirMails/PageListeMails.xaml", UriKind.Relative), NavigateReceptionMail.GetNavigationData(FrameReceptionMail.NavigationService));
                break;

            default:
                WindowAccueil winAccueil = new WindowAccueil();
                //Affichage de la WindowAccueil
                winAccueil.Show();
                //Fermeture de la WindowEnvoyerMail
                this.Close();
                break;
            }
        }
Exemplo n.º 5
0
        private void ButtonRetour_Click(object sender, RoutedEventArgs e)
        {
            var current_page = FrameContacts.NavigationService.Content.GetType().Name.ToString();

            //Retour Page Details Contact vers Page Liste Contacts
            if (current_page.Equals("PageDetailsContact") || current_page.Equals("PageAjouterContact"))
            {
                FrameContacts.NavigationService.Navigate(new Uri("./Contacts/PageListeContacts.xaml", UriKind.Relative));
            }
            else if (current_page.Equals("PageListeContacts"))
            {
                //Retour Page Liste Contacts vers Window Accueil
                WindowAccueil winAccueil = new WindowAccueil();
                //Affichage de la WindowAccueil
                winAccueil.Show();
                //Fermeture de la WindowContacts
                this.Close();
            }
        }
Exemplo n.º 6
0
        private void ButtonRetour_Click(object sender, RoutedEventArgs e)
        {
            //TO DO : Coder gestion du boutons retour
            string current_page = FrameEnvoiMail.NavigationService.Content.GetType().Name.ToString();

            switch (current_page)
            {
            case "PageSaisieObjet":
                NavigateMail.Navigate(FrameEnvoiMail.NavigationService, new Uri("./EnvoyerMail/PageSaisieDestinataire.xaml", UriKind.Relative), NavigateMail.GetNavigationData(FrameEnvoiMail.NavigationService));
                break;

            case "PageSaisieMessage":
                NavigateMail.Navigate(FrameEnvoiMail.NavigationService, new Uri("./EnvoyerMail/PageSaisieObjet.xaml", UriKind.Relative), NavigateMail.GetNavigationData(FrameEnvoiMail.NavigationService));
                break;

            default:
                WindowAccueil winAccueil = new WindowAccueil();
                //Affichage de la WindowAccueil
                winAccueil.Show();
                //Fermeture de la WindowEnvoyerMail
                this.Close();
                break;
            }
        }