public static ATSWebBrowserContainer Create(IDesktopWindow desktopWindow) { var atsWebBrowserComponent = new ATSWebBrowserComponent(); var aimAnnotationComponent = AimAnnotationComponent.Create(desktopWindow, true); aimAnnotationComponent.Preview = true; atsWebBrowserComponent.AimAnnotationComponent = aimAnnotationComponent; var leftPane = new SplitPane(SR.TitleWebBrowserPane, atsWebBrowserComponent, 0.75f); var rightPane = new SplitPane(SR.TitleAimAnnotationPane, aimAnnotationComponent, 0.25f); return new ATSWebBrowserContainer(leftPane, rightPane); }
/// <summary> /// Constructor /// </summary> public ATSWebBrowserComponentControl(ATSWebBrowserComponent component) : base(component) { InitializeComponent(); _component = component; // Build the shortcut toolbar this.ToolbarModel = _component.ToolbarModel; _back.Enabled = _browser.CanGoBack; _forward.Enabled = _browser.CanGoForward; ListenForComponentEvents(); ListenForUIEvents(); ListenForBrowserEvents(); _browser.Navigating += BrowserNavigating; _browser.DocumentCompleted += BrowserDocumentCompleted; _component.PropertyChanged += ComponentPropertyChanged; }
public void SetComponent(IApplicationComponent component) { _component = (ATSWebBrowserComponent)component; }