//private void LoadComboTaxe() //{ // int loaderHandler = LoadingManager.BeginLoading(Galatee.Silverlight.Resources.Devis.Languages.Data_Loading); // DevisServiceClient client = new DevisServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Devis")); // client.GetAllCtaxCompleted += (ssender, args) => // { // if (args.Cancelled || args.Error != null) // { // string error = args.Error.Message; // Message.Show(error, Galatee.Silverlight.Resources.Devis.Languages.txtDevis); // return; // } // SessionObject.LstDesTaxeDevis = args.Result; // FillComboxTaxe(SessionObject.LstDesTaxeDevis); // LoadingManager.EndLoading(loaderHandler); // }; // client.GetAllCtaxAsync(); //} private void RetouneListeDesTaxes() { if (SessionObject.LstDesTaxe != null && SessionObject.LstDesTaxe.Count != 0) { List <CsCtax> lstTournee = SessionObject.LstDesTaxe; FillComboxTaxe(lstTournee); return; } Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient service = new Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Accueil")); service.RetourneListeTaxeCompleted += (s, args) => { if (args != null && args.Cancelled) { return; } SessionObject.LstDesTaxe = args.Result; List <CsCtax> lstTournee = SessionObject.LstDesTaxe; FillComboxTaxe(lstTournee.Where(t => t.CENTRE == ObjetDevisSelectionne.CENTRE && t.FK_IDCENTRE == ObjetDevisSelectionne.FK_IDCENTRE).ToList()); return; }; service.RetourneListeTaxeAsync(); service.CloseAsync(); }