private void WebBrowser_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e) { if (!e.Uri.ToString().ToLower().Contains("tableeditor.html")) { return; } var json = BaseBrowserInterop.SerializeObject(TableData); WebBrowser.Focus(); try { JavaScriptCallbacks = new TableEditorJavaScriptCallbacks(this); var inst = WebBrowser.InvokeScript("InitializeInterop", JavaScriptCallbacks, json); Interop = new TableEditorDotnetInterop(inst); } catch { mmApp.Model.Window.ShowStatusError("Unable to open table editor. Unable to navigate to editor template."); this.Close(); } }
public void UpdateHtmlTable(TableData data, TableLocation location) { Invoke("renderTable", BaseBrowserInterop.SerializeObject(data), BaseBrowserInterop.SerializeObject(location)); }