/// <summary> /// Change the browser content /// </summary> /// <param name="browser">The browser</param> /// <param name="targetFile">The fallback target file</param> public ChangeBrowserContentCommand(BrowserUserControl browser, string targetFile) { if (browser.DataContext is BrowserModelView modelView) { this.browserModel = modelView; this.targetFile = targetFile; } }
/// <summary> /// Change the browser content /// </summary> /// <param name="browserModel">The browser model view</param> /// <param name="targetFile">The fallback target file</param> public ChangeBrowserContentCommand(BrowserModelView browserModel, string targetFile) { this.browserModel = browserModel; this.targetFile = targetFile; }
/// <summary> /// Change the browser content /// </summary> /// <param name="browserModel">The browser model view</param> public ChangeBrowserContentCommand(BrowserModelView browserModel) : this(browserModel, string.Empty) { }
/// <summary> /// A user control containing a full size webbrowser to display content /// </summary> /// <param name="fileToOpen"></param> public BrowserUserControl(string fileToOpen, IDocumentManagerFactory managerFactory) { InitializeComponent(); DataContext = new BrowserModelView(fileToOpen, this, managerFactory); }