コード例 #1
0
        private void OnWorkerDoWork(object sender, DoWorkEventArgs e)
        {
            if (!CheckServerStatus("http://www.fsmod.com/"))
            {
                return;
            }

            try
            {
                RSS rss = new RSS("http://www.fsmod.com/bothanspy/news.xml", 5);
                e.Result = rss.GetHtml();
            }
            catch (Exception)
            {
                e.Result = "<html><head></head><body>There was a problem getting the news.</body></htmL>";
            }
        }
コード例 #2
0
        private void OnWorkerDoWork(object sender, DoWorkEventArgs e)
        {
            if (!CheckServerStatus("http://www.fsmod.com/"))
                return;

            try
            {
                RSS rss = new RSS("http://www.fsmod.com/bothanspy/news.xml", 5);
                e.Result = rss.GetHtml();
            }
            catch (Exception)
            {
                e.Result = "<html><head></head><body>There was a problem getting the news.</body></htmL>";
            }
        }