예제 #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            //Kell a getInfo
            string    answer = client.GetInfo();
            XDocument xml    = XDocument.Parse(answer);

            SetUp(xml);
        }
예제 #2
0
        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;
        }
예제 #3
0
        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);
        }