コード例 #1
0
 private void LoadAllTypeLienProduit()
 {
     try
     {
         //if (SessionObject.ListeDesProduit.Count != 0)
         //{
         //    LstDeProduit = SessionObject.ListeDesProduit;
         //    return;
         //}
         Galatee.Silverlight.ServiceTarification.TarificationServiceClient service1 = new Galatee.Silverlight.ServiceTarification.TarificationServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Tarification"));
         service1.LoadAllTypeLienProduitCompleted += (sr, res) =>
         {
             if (res != null && res.Cancelled)
             {
                 return;
             }
             //SessionObject.ListeDesProduit = res.Result;
             LstDeTypeLienProduit      = res.Result;
             btn_TypeLienRed.IsEnabled = true;
         };
         service1.LoadAllTypeLienProduitAsync();
         service1.CloseAsync();
     }
     catch (Exception ex)
     {
         Message.ShowError(ex.Message, "ChargerListeDeTypeDeLienDeRedevance");
     }
 }