public static void GetBuying(Ticket ticket) { IsBuyingCompleted = false; string xml; if (ticket.Type == TicketType.BusJourney) { xml = BuyingParsing.GetBusBuying(ticket); } else { xml = BuyingParsing.GetAirplaneBuying(ticket); } var client = new ServiceSoapClient(); client.StrIsletAsync(xml, Global.Authorization); client.StrIsletCompleted += (c, e) => { string xmlResult = e.Result; PopulateBuying(xmlResult); }; }