コード例 #1
0
        private void go()
        {
            if (lvwSubscriptions.HasItem(s => String.Compare(s.URL, txtURL.Text.Trim(), StringComparison.OrdinalIgnoreCase) == 0))
            {
                Controller.ShowPriorityMessage("Podcast subscription already loaded.");
            }
            else
            {
                Controller.ShowPriorityMessage("Downloading podcast information...");

                PodcastSubscription p = new PodcastSubscription(txtURL.Text.Trim());

                if (p.Loaded)
                {
                    pendingPodcastSubscription = p;
                    Clock.DoOnMainThread(addPendingSubscription);
                    Controller.ShowPriorityMessage("Podcast information downloaded.");
                }
                else
                {
                    Controller.ShowPriorityMessage("Podcast audio information not found.");
                }
            }
        }