예제 #1
0
 public WindowEnvoiMail()
 {
     InitializeComponent();
     //On charge la page dans le frame de la Window
     NavigateMail.Navigate(FrameEnvoiMail.NavigationService, new Uri("./EnvoyerMail/PageSaisieDestinataire.xaml", UriKind.Relative), new Mail());
     //FrameEnvoiMail.NavigationService.Navigate(new Uri("./EnvoyerMail/PageSaisieDestinataire.xaml", UriKind.Relative));
 }
예제 #2
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;
            }
        }
예제 #3
0
 public WindowEnvoiMail(Uri uri, Mail m)
 {
     InitializeComponent();
     NavigateMail.Navigate(FrameEnvoiMail.NavigationService, uri, m);
 }