예제 #1
0
 /// <summary>The callback used when the html text for this iframe has been loaded.</summary>
 /// <param name="package">The text package containing the html, if it is ok.</param>
 private void OnTextReady(TextPackage package)
 {
     if (package.Errored)
     {
         // Output it to our iframe:
         SetContent("Error: " + package.Error);
     }
     else
     {
         SetContent(package.Text);
     }
     Element.OnLoaded("webpage");
 }