private void textBoxUrl_LostFocus(object sender, RoutedEventArgs e)
 {
     var rssReader = new RssReader();
     try
     {
         FeedOut = rssReader.ReadFeed(new Uri(textBoxUrl.Text));
         labelTitleShow.Content = FeedOut.Title + ", episodes: " + FeedOut.CollectionFeedItems.Count;
     }
     catch (UriFormatException ex)
     {
         labelTitleShow.Content = ex.Message;
         FeedOut = null;
     }
     catch (Exception ex)
     {
         labelTitleShow.Content = ex.Message;
         FeedOut = null;
     }
 }
        private void textBoxURL_Leave(object sender, EventArgs e)
        {
            var rssReader = new RssReader();

            try
            {
                labelTitle.Text = "Title:";
                NewFeed = rssReader.ReadFeed(new Uri(textBoxURL.Text));
                textBoxTitle.Text = NewFeed.Title;
                labelEpisodes.Text = "Episodes: " + NewFeed.CollectionFeedItems.Count;

            }
            catch (UriFormatException ex)
            {
                labelTitle.Text = ex.Message;
                NewFeed = null;
            }
            catch (Exception ex)
            {
                labelTitle.Text = ex.Message;
                NewFeed = null;
            }
        }
 private void textBoxURL_Leave(object sender, EventArgs e)
 {
     var rssReader = new RssReader();
     try
     {
         EditedFeed = rssReader.ReadFeed(new Uri(textBoxURL.Text));
         textBoxTitle.Text = EditedFeed.Title;
         labelEpisode.Text = "Episodes: " + EditedFeed.CollectionFeedItems.Count + "";
     }
     catch (UriFormatException ex)
     {
         MessageBox.Show("Can't read URL: " + textBoxURL.Text + " " + ex.Message);
     }
     catch (Exception ex)
     {
         MessageBox.Show("Can't read URL: " + textBoxURL.Text + " " + ex.Message);
     }
 }