public void RefreshNews(string strUrl)
        {
            txtStatus.Text = myVariables.LoadingWait;
            RefreshNewsDelegate del = new RefreshNewsDelegate(RefreshNewsAsych);

            AsyncCallback callback = new AsyncCallback(XMLHasFinished);
            del.BeginInvoke(strUrl, callback, null);
        }
        public ClientLauncher(UserPreferences myUserPreferences)
        {
            InitializeComponent();

            _ServerInfo = myUserPreferences.DefaultServerInformation;
            theUserPreferences = myUserPreferences;

            //does this exe even exist yet?
            if (!File.Exists(SWGANHPAth + _ServerInfo.SafeFolderName + "\\swganh.exe"))
            {
                PatchProgress myPatchProgress = new PatchProgress(_ServerInfo, myUserPreferences);
                myPatchProgress.Loaded += new RoutedEventHandler(myPatchProgress_Loaded);
                myPatchProgress.OnError += new EventHandler<ErrorMessageEventArgs>(myPatchProgress_OnError);
                myPatchProgress.PatchComplete += new EventHandler<Patcher.PatchFunctionCompleteEventArgs>(myPatchProgress_PatchComplete);
                grdRightPanel.Children.Clear();
                grdRightPanel.Children.Add(myPatchProgress);
                btnLaunchClient.IsEnabled = false;

            }
            else
            {
                //read the first article
                RefreshNewsDelegate del = new RefreshNewsDelegate(RefreshNewsAsych);

                AsyncCallback callback = new AsyncCallback(XMLHasFinished);
                del.BeginInvoke(_ServerInfo.RSSFeedUrl, callback, null);
            }

            lblServerName.Text = _ServerInfo.ServerName;
            lblServerBuild.Text = "999";
            lblServerPopulation.Text = _ServerInfo.Population.ToString();

            //do we have any credentials for this server?
            if (myUserPreferences.ServerCredentials.Any(sc => sc.ServerId == _ServerInfo.ServerId))
            {
                cboUsername.ItemsSource = myUserPreferences.ServerCredentials.Where(sc => sc.ServerId == _ServerInfo.ServerId);
                cboUsername.SelectedIndex = 0;
            }
        }
        public void RefreshNews(string strUrl)
        {
            RefreshNewsDelegate del = new RefreshNewsDelegate(RefreshNewsAsych);

            AsyncCallback callback = new AsyncCallback(XMLHasFinished);
            del.BeginInvoke(strUrl, callback, null);
        }