public MessageFiche(Fiche f)
 {
     InitializeComponent();
     initialiser(f);
     monServ = new ServiceReferenceFiche.WebServiceFicheSoapClient();
     monServ.ExecuteScalarCompleted += myService_ExecuteScalarCompleted;
     monServ.ExecuteNonQueryCompleted += myService_ExecuteNonQueryCompleted;
 }
 private void initialiser(Fiche f)
 {
     this.fiche = f;
     label.Content = f.getId();
     label_1.Content = f.Nom;
     label_2.Content = f.Type;
     label_3.Content = f.Date;
     label_4.Content = f.Voyage;
     label_5.Content = f.getMail();
     label_6.Content = f.getTel();
     label_7.Content = f.getTelPort();
     label_8.Content = f.Origine;
     label_9.Content = f.Statut;
     if (estimationBox.IsReadOnly)
     {
         estimationBox.Text = f.getEstimation();
     }
     if (volumeBox.IsReadOnly)
     {
         volumeBox.Text = f.getVolume();
     }
     messBox.Text = f.getMess();
     gridHisto.ItemsSource = f.getHisto();
 }