private void LaunchRRCountyFeedSearch(string countyId) { if (string.IsNullOrWhiteSpace(tbRRUserName.Text) || string.IsNullOrWhiteSpace(tbRRPassword.Password) || string.IsNullOrWhiteSpace(countyId)) { return; } ShowProgress(true); _feedAPI.UpdateUserInfo(tbRRUserName.Text, tbRRPassword.Password); System.Threading.Tasks.Task t = new Task(() => { string errorMsg = string.Empty; List <Broadcastify.FeedItemHolder> _rrRslt = _feedAPI.SearchForFeedsInCounty(countyId, out errorMsg); if (_rrRslt != null) { _rrFeeds.Clear(); foreach (Broadcastify.FeedItemHolder f in _rrRslt) { _rrFeeds.Add(f); } } ShowProgress(false); ShowErrorMessage(_rrRslt == null, errorMsg); }); t.Start(); }
private void ProcessResults(List <string> feedResults) { if (!Dispatcher.CheckAccess()) { Dispatcher.BeginInvoke(new RadioLog.FeedUtils.FeedFinder.ProcessUrlCompleteDelegate(ProcessResults), feedResults); } else { int iTotalCnt = 0; int iFilteredCnt = 0; pbProcessing.Visibility = System.Windows.Visibility.Collapsed; btnOk.IsEnabled = true; btnFind.IsEnabled = true; _feeds.Clear(); if (feedResults != null) { foreach (string s in feedResults) { iTotalCnt++; if (Common.AppSettings.Instance.SignalSources.FirstOrDefault(f => f.SourceLocation == s && f.SourceType == Common.SignalingSourceType.Streaming) == null) { _feeds.Add(new FoundFeedHolder() { FeedURL = s }); } else { iFilteredCnt++; } } } tbStatus.Text = string.Format("{0} Feeds found, {1} already setup...", iTotalCnt, iFilteredCnt); } }
internal static void RemoveAllEmergencies() { MarkAllEmergenciesCleared(); _emergencyRadioLog.Clear(); }