Example #1
0
 /// <summary>
 /// Updates the web browser with the asynchronously loaded changelog from the server.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The arguments containing the HTML from the server.</param>
 protected void OnChangelogDownloadFinished(object sender, ChangelogDownloadFinishedEventArgs e)
 {
     //Take the resulting HTML string from the changelog download and send it to the changelog browser
     Application.Invoke(delegate
     {
         Browser.LoadHtmlString(e.HTML, e.URL);
     });
 }
Example #2
0
 /// <summary>
 /// Updates the web browser with the asynchronously loaded changelog from the server.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The arguments containing the HTML from the server.</param>
 private void OnChangelogDownloadFinished(object sender, ChangelogDownloadFinishedEventArgs e)
 {
     // Take the resulting HTML string from the changelog download and send it to the changelog browser
     Application.Invoke((o, args) => this.Browser.LoadHTML(e.HTML, e.URL));
 }
Example #3
0
 /// <summary>
 /// Updates the web browser with the asynchronously loaded changelog from the server.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The arguments containing the HTML from the server.</param>
 private void OnChangelogDownloadFinished(object sender, ChangelogDownloadFinishedEventArgs e)
 {
     changelogBrowser.DocumentText = e.HTML;
     changelogBrowser.Url          = new Uri(e.URL);
     changelogBrowser.Refresh();
 }