コード例 #1
0
 private void LoadAllTypeRedevance()
 {
     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.LoadAllTypeRedevanceCompleted += (sr, res) =>
         {
             if (res != null && res.Cancelled)
             {
                 return;
             }
             //SessionObject.ListeDesProduit = res.Result;
             LstDeTypeRedevence    = res.Result;
             btn_TypeRed.IsEnabled = true;
         };
         service1.LoadAllTypeRedevanceAsync();
         service1.CloseAsync();
     }
     catch (Exception ex)
     {
         Message.ShowError(ex.Message, "ChargerListeDeProduit");
     }
 }