public void GetData()
 {
     foreach (string s in EnumHelper.GetNames(typeof(ConverterService.Currency)))
     {
         LocationUnit unit = new LocationUnit()
         {
             Location = s,
             URL      = s
         };
         Locations.Add(unit);
     }
 }
        private void btnConvert_Click(object sender, RoutedEventArgs e)
        {
            ConverterService.CurrencyConvertorSoapClient aobClient = new ConverterService.CurrencyConvertorSoapClient();
            aobClient.ConversionRateCompleted += new EventHandler <ConverterService.ConversionRateCompletedEventArgs>(aobClient_ConversionRateCompleted);


            LocationUnit selectedLocationFrom = (from c in Locations where c.Location == ((LocationUnit)cmbCurrFrom.SelectedItem).Location select c).First();
            LocationUnit selectedLocationTo   = (from c in Locations where c.Location == ((LocationUnit)cmbCurrTo.SelectedItem).Location select c).First();


            ConverterService.Currency currFrom = (ConverterService.Currency)Enum.Parse(typeof(ConverterService.Currency), selectedLocationFrom.Location, true);
            ConverterService.Currency currTo   = (ConverterService.Currency)Enum.Parse(typeof(ConverterService.Currency), selectedLocationTo.Location, true);

            aobClient.ConversionRateAsync(currFrom, currTo);
        }
        public void GetData()
        {
            foreach (string s in EnumHelper.GetNames(typeof(ConverterService.Currency)))
            {
                LocationUnit unit = new LocationUnit()
                {
                    Location = s,
                    URL = s
                };
                Locations.Add(unit);

                

            }
        }