public PageListeMails()
 {
     InitializeComponent();
     worker.DoWork             += worker_DoWork;
     worker.RunWorkerCompleted += worker_RunWorkerCompleted;
     listViewEmail.ItemsSource  = NavigateReceptionMail.GetNavigationData(this.NavigationService);
 }
        private void worker_DoWork(object sender, DoWorkEventArgs e)
        {
            liste_mail_test = RecevoirMailHelper.getInstance.RecupererMails();

            NavigateReceptionMail.setData(liste_mail_test);
        }
 private void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     label_status.Content      = "";
     listViewEmail.ItemsSource = listViewEmail.ItemsSource = NavigateReceptionMail.GetNavigationData(this.NavigationService);
 }
 private void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     NavigateReceptionMail.Navigate(this.NavigationService, new Uri("./RecevoirMails/PageListeMails.xaml", UriKind.Relative), liste_mail_test);
 }