Exemplo n.º 1
0
 /// <summary>
 /// Moves the browser's display forward to the page that hda been displayed before going back.
 /// </summary>
 /// <param name="sender">Object Sender</param>
 /// <param name="e">System.EventArgs e</param>
 private void Forward_Click(object sender, EventArgs e)
 {
     try
     {
         // Perform the "Forward" operation on the web page
         HostedWebApplication webApp = app as HostedWebApplication;
         if (webApp != null)
         {
             WebBrowserExtended browser = webApp.TopLevelWindow as WebBrowserExtended;
             browser.GoForward();
         }
     }
     catch (Exception exp)
     {
         Logging.Trace(exp.Message + "\n\n" + exp.StackTrace);
     }
 }
Exemplo n.º 2
0
 // This required constructor provides an opportunity to observe the application initstring (appInitString)
 // as well as the WebBrowserExtended (appObject).
 // These parameters need to be passed on to the superclass:
 public WebDDAExt(XmlDocument appInitString, object appObject) : base(appInitString, appObject)
 {
     // This is not required, but would be useful for having access to the Document Object Model:
     _Browser = appObject as WebBrowserExtended;
 }