private void Window_Loaded(object sender, RoutedEventArgs e) { //Kell a getInfo string answer = client.GetInfo(); XDocument xml = XDocument.Parse(answer); SetUp(xml); }
private void Window_Loaded(object sender, RoutedEventArgs e) { client = new MNBArfolyamServiceSoapClient(); string result = client.GetInfo(); ProcessInfo(result); result = client.GetCurrentExchangeRates(); ProcessRates(result); atvaltandoosszeg.Content = osszeg; }
public List <string> Currencies() { List <string> currencies = new List <string>(); XDocument XInfo = Worker.XmlParser(client.GetInfo(new GetInfoRequestBody()).GetInfoResult); foreach (var item in XInfo.Root.Elements("Currencies").Nodes()) { currencies.Add((item as XElement).Value); } return(currencies); }