private void ProcessCountyList(object o)
 {
     if (!Dispatcher.CheckAccess())
     {
         Dispatcher.BeginInvoke(new DefaultObjectDelegate(ProcessCountyList), o);
     }
     else
     {
         RadioLog.Broadcastify.ItemIdHolder        allItem = new Broadcastify.ItemIdHolder(string.Empty, "All", string.Empty);
         List <RadioLog.Broadcastify.ItemIdHolder> lst     = o as List <RadioLog.Broadcastify.ItemIdHolder>;
         if (lst != null)
         {
             if (lst.Count > 0)
             {
                 lst.Insert(0, allItem);
             }
             else
             {
                 lst.Add(allItem);
             }
         }
         else
         {
             lst = new List <Broadcastify.ItemIdHolder>();
             lst.Add(allItem);
         }
         cbCounties.ItemsSource   = lst;
         cbCounties.IsEnabled     = (lst.Count > 1);
         cbCounties.SelectedIndex = 0;
         ShowProgress(false);
     }
 }
 private void ProcessCountryList(object o)
 {
     if (!Dispatcher.CheckAccess())
     {
         Dispatcher.BeginInvoke(new DefaultObjectDelegate(ProcessCountryList), o);
     }
     else
     {
         RadioLog.Broadcastify.ItemIdHolder        allItem = new Broadcastify.ItemIdHolder(string.Empty, "All", string.Empty);
         List <RadioLog.Broadcastify.ItemIdHolder> lst     = o as List <RadioLog.Broadcastify.ItemIdHolder>;
         if (lst != null)
         {
             if (lst.Count > 0)
             {
                 lst.Insert(0, allItem);
             }
             else
             {
                 lst.Add(allItem);
             }
         }
         else
         {
             lst = new List <Broadcastify.ItemIdHolder>();
             lst.Add(allItem);
         }
         cbCountries.ItemsSource   = lst;
         cbCountries.IsEnabled     = true;
         cbCountries.SelectedValue = _feedAPI.LastCountry;
         if (!string.IsNullOrWhiteSpace(_feedAPI.LastCountry) && !string.IsNullOrWhiteSpace(_feedAPI.LastState))
         {
             LaunchGetStateList(_feedAPI.LastCountry);
         }
         ShowProgress(false);
     }
 }
 private void ProcessCountyList(object o)
 {
     if (!Dispatcher.CheckAccess())
     {
         Dispatcher.BeginInvoke(new DefaultObjectDelegate(ProcessCountyList), o);
     }
     else
     {
         RadioLog.Broadcastify.ItemIdHolder allItem = new Broadcastify.ItemIdHolder(string.Empty, "All", string.Empty);
         List<RadioLog.Broadcastify.ItemIdHolder> lst = o as List<RadioLog.Broadcastify.ItemIdHolder>;
         if (lst != null)
         {
             if (lst.Count > 0)
                 lst.Insert(0, allItem);
             else
                 lst.Add(allItem);
         }
         else
         {
             lst = new List<Broadcastify.ItemIdHolder>();
             lst.Add(allItem);
         }
         cbCounties.ItemsSource = lst;
         cbCounties.IsEnabled = (lst.Count > 1);
         cbCounties.SelectedIndex = 0;
         ShowProgress(false);
     }
 }
 private void ProcessCountryList(object o)
 {
     if (!Dispatcher.CheckAccess())
     {
         Dispatcher.BeginInvoke(new DefaultObjectDelegate(ProcessCountryList), o);
     }
     else
     {
         RadioLog.Broadcastify.ItemIdHolder allItem = new Broadcastify.ItemIdHolder(string.Empty, "All", string.Empty);
         List<RadioLog.Broadcastify.ItemIdHolder> lst = o as List<RadioLog.Broadcastify.ItemIdHolder>;
         if (lst != null)
         {
             if (lst.Count > 0)
                 lst.Insert(0, allItem);
             else
                 lst.Add(allItem);
         }
         else
         {
             lst = new List<Broadcastify.ItemIdHolder>();
             lst.Add(allItem);
         }
         cbCountries.ItemsSource = lst;
         cbCountries.IsEnabled = true;
         cbCountries.SelectedValue = _feedAPI.LastCountry;
         if (!string.IsNullOrWhiteSpace(_feedAPI.LastCountry) && !string.IsNullOrWhiteSpace(_feedAPI.LastState))
         {
             LaunchGetStateList(_feedAPI.LastCountry);
         }
         ShowProgress(false);
     }
 }