From a75a745207eaae9e25f1a3e67df5fb02107b0a80 Mon Sep 17 00:00:00 2001 From: Dimitrie Stefanescu Date: Tue, 15 Oct 2019 14:52:37 +0100 Subject: [PATCH] UiBindings base abstract class now declares the Browser as an IWebBrowser to smooth compat between wpf (revit) and winforms (rhino) versions of cefsharp --- SpeckleUiBase/SpeckleUiBindings.cs | 2 +- SpeckleUiBase/SpeckleUiWindow.xaml.cs | 2 +- SpeckleUiTester/App.xaml.cs | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/SpeckleUiBase/SpeckleUiBindings.cs b/SpeckleUiBase/SpeckleUiBindings.cs index 3b7ddac..baa19d5 100644 --- a/SpeckleUiBase/SpeckleUiBindings.cs +++ b/SpeckleUiBase/SpeckleUiBindings.cs @@ -12,7 +12,7 @@ namespace SpeckleUiBase { public abstract class SpeckleUIBindings { - public ChromiumWebBrowser Browser { get; set; } + public IWebBrowser Browser { get; set; } public SpeckleUiWindow Window { get; set; } public SpeckleUIBindings() diff --git a/SpeckleUiBase/SpeckleUiWindow.xaml.cs b/SpeckleUiBase/SpeckleUiWindow.xaml.cs index e2f229d..c9c7696 100644 --- a/SpeckleUiBase/SpeckleUiWindow.xaml.cs +++ b/SpeckleUiBase/SpeckleUiWindow.xaml.cs @@ -28,7 +28,7 @@ public partial class SpeckleUiWindow : Window /// /// Your implementation of the SpeckleUiBindings class. /// Defaults to the master branch release of the web ui app. Change it to where you're running your local server when debugging! - public SpeckleUiWindow( SpeckleUIBindings baseBindings, string address = "https://appui.speckle.systems/#/" ) + public SpeckleUiWindow( SpeckleUIBindings baseBindings, string address = "https://matteo-dev.appui.speckle.systems/#/" ) { InitializeComponent(); diff --git a/SpeckleUiTester/App.xaml.cs b/SpeckleUiTester/App.xaml.cs index b8a69f9..dae76a2 100644 --- a/SpeckleUiTester/App.xaml.cs +++ b/SpeckleUiTester/App.xaml.cs @@ -134,7 +134,7 @@ public override List GetSelectionFilters() { Name = "Selection", Icon = "mouse", - Count = 99 + //Count = 99 }, new ListSelectionFilter { @@ -163,6 +163,11 @@ public override List GetSelectionFilters() } }; } + + public override void PushSender( string args ) + { + throw new NotImplementedException(); + } } }