public FrmInitRemboursementTravaux(string TypeDemande)
 {
     InitializeComponent();
     ctrl        = new Galatee.Silverlight.Shared.UcFichierJoint(null, false);
     Vwb.Stretch = Stretch.None;
     Vwb.Child   = ctrl;
     this.Txt_NumeroDemande.MaxLength = SessionObject.Enumere.TailleNumeroDemande;
     prgBar.Visibility = System.Windows.Visibility.Collapsed;
 }
 private void RenseignerInformationsDocumentScanne()
 {
     try
     {
         #region DocumentScanne
         ctrl        = new Galatee.Silverlight.Shared.UcFichierJoint(laDetailDemande.ObjetScanne, true);
         Vwb.Stretch = Stretch.None;
         Vwb.Child   = ctrl;
         #endregion
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 private void AfficherDocumentScanne(List <ObjDOCUMENTSCANNE> _LesDocScanne)
 {
     try
     {
         if (_LesDocScanne != null && _LesDocScanne.Count != 0)
         {
             #region DocumentScanne
             ctrl        = new Galatee.Silverlight.Shared.UcFichierJoint(_LesDocScanne, false);
             Vwb.Stretch = Stretch.None;
             Vwb.Child   = ctrl;
             #endregion
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 private void RenseignerInformationsDocumentScanne()
 {
     try
     {
         #region DocumentScanne
         if (laDetailDemande.ObjetScanne == null || laDetailDemande.ObjetScanne.Count == 0)
         {
             this.tabPieceJointe.Visibility = System.Windows.Visibility.Collapsed;
         }
         ctrl        = new Galatee.Silverlight.Shared.UcFichierJoint(laDetailDemande.ObjetScanne, true);
         Vwb.Stretch = Stretch.None;
         Vwb.Child   = ctrl;
         #endregion
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        private void ChargeDetailDEvis(int IdDemandeDevis)
        {
            AcceuilServiceClient client = new AcceuilServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Accueil"));

            client.ChargerDetailDemandeAsync(IdDemandeDevis, string.Empty);
            client.ChargerDetailDemandeCompleted += (ssender, args) =>
            {
                if (args.Cancelled || args.Error != null)
                {
                    LayoutRoot.Cursor = Cursors.Arrow;
                    string error = args.Error.Message;
                    Message.ShowError(error, Silverlight.Resources.Devis.Languages.txtDevis);
                    return;
                }
                if (args.Result == null)
                {
                    LayoutRoot.Cursor = Cursors.Arrow;
                    Message.ShowError(Silverlight.Resources.Devis.Languages.AucunesDonneesTrouvees, Silverlight.Resources.Devis.Languages.txtDevis);
                    return;
                }
                else
                {
                    laDetailDemande = args.Result;
                    //#region DocumentScanne
                    //if (laDetailDemande.ObjetScanne != null && laDetailDemande.ObjetScanne.Count != 0)
                    //{
                    //    foreach (var item in laDetailDemande.ObjetScanne)
                    //    {
                    //        LstPiece.Add(item);
                    //        ObjetScanne.Add(item);
                    //    }
                    //    dgListePiece.ItemsSource = null ;
                    //    dgListePiece.ItemsSource = ObjetScanne;
                    //}
                    //#endregion

                    //if(  laDetailDemande.LaDemande.TYPEDEMANDE == SessionObject.Enumere.Resiliation)
                    //   this.Chk_PasDeFacture.Visibility = System.Windows.Visibility.Visible ;

                    laDemandeSelect = laDetailDemande.LaDemande;
                    RenseignerInformationsDevis(laDetailDemande);
                    RenseignerInformationsDemandeDevis(laDetailDemande);
                    RenseignerInformationsAppareilsDevis(laDetailDemande);
                    RenseignerInformationsFournitureDevis(laDetailDemande);
                    RenseignerInformationsAbonnement(laDetailDemande);
                    RenseignerInformationsBrt(laDetailDemande);
                    //RenseignerInformationsDocumentScanne();
                    RenseignerInformationsAnnotationDevis(laDetailDemande);

                    #region DocumentScanne
                    ctrl        = new Galatee.Silverlight.Shared.UcFichierJoint(laDetailDemande.ObjetScanne, false);
                    Vwb.Stretch = Stretch.None;
                    Vwb.Child   = ctrl;
                    #endregion


                    LayoutRoot.Cursor = Cursors.Arrow;
                }
                LayoutRoot.Cursor = Cursors.Arrow;
            };
        }