コード例 #1
0
 private void RemplirListeDesQuartierExistant()
 {
     try
     {
         if (SessionObject.LstQuartier != null && SessionObject.LstQuartier.Count != 0)
         {
             _listeDesQuartierExistant = SessionObject.LstQuartier;
             return;
         }
         Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient service = new Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Accueil"));
         service.ChargerLesQartiersAsync();
         service.ChargerLesQartiersCompleted += (s, args) =>
         {
             if (args != null && args.Cancelled)
             {
                 return;
             }
             SessionObject.LstQuartier = args.Result;
             _listeDesQuartierExistant = SessionObject.LstQuartier;
         };
         service.CloseAsync();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }