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>"; } }
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>"; } }