public UC_ITEM_AccueilNewDoc(Int64 id)
 {
     InitializeComponent();
     Document myDoc = new Document((uint)id, "loc");
     UIElement myExpendItem = new UIElement();
     this.TextBlock_heure.Text = myDoc.dateTimeEditionBDD.ToString("dd/MM/yyyy");
     this.TextBlock_logoSection.Text = Logos.DisplayLogo(myDoc.section);
     if (myDoc.typeDocument == "DocNormales")
     {
         this.TextBlock_logoTypeDocument.Text = Logos.DisplayLogo("DOCUMENTS_TECHNIQUES");
         this.TextBlock_titre.Text = ((Document.DocNormales)myDoc.document).titreDocument;
         myExpendItem = new UC_ITEM_Document(id);
     }
     if (myDoc.typeDocument == "Consignes")
     {
         this.TextBlock_logoTypeDocument.Text = Logos.DisplayLogo("CONSIGNES");
         this.TextBlock_titre.Text = ((Document.Consignes)myDoc.document).objetConsigne;
         myExpendItem = new UC_ITEM_Consigne(id);
     }
     if (myDoc.typeDocument == "TachesJournalieres")
     {
         this.TextBlock_logoTypeDocument.Text = Logos.DisplayLogo("TACHES_JOURNALIERES");
         this.TextBlock_titre.Text = ((Document.TachesJournalieres)myDoc.document).titreAction;
         myExpendItem = new UC_ITEM_TacheJournaliere(id);
     }
     if (myDoc.typeDocument == "Verifications")
     {
         this.TextBlock_logoTypeDocument.Text = Logos.DisplayLogo("VERIFICATIONS");
         this.TextBlock_titre.Text = ((Document.Verifications)myDoc.document).titreAction;
         myExpendItem = new UC_ITEM_Verification(id);
     }
     this.myGridAdditionalContent.Children.Add(myExpendItem);
 }
 private void BW_Display_ProgressChanged(object sender, ProgressChangedEventArgs e)
 {
     Document workerResult = e.UserState as Document;
     UC_ITEM_Verification itemToAdd = new UC_ITEM_Verification(workerResult);
     this.myDocPanel.Children.Add(itemToAdd);
 }