Esempio n. 1
0
        /// <summary>
        /// Instantiates the ui.
        /// </summary>
        /// <param name="baseBindings">Your implementation of the SpeckleUiBindings class.</param>
        /// <param name="address">Defaults to the master branch release of the web ui app. Change it to where you're running your local server when debugging!</param>
        public SpeckleUiWindow(SpeckleUIBindings baseBindings, string address = "https://matteo-dev.appui.speckle.systems/#/")
        {
            InitializeComponent();

            baseBindings.Browser = Browser;
            baseBindings.Window  = this;

            Browser.RegisterAsyncJsObject("UiBindings", baseBindings);

            Browser.Address = address;
        }
 public SpeckleAutocadUiWindow(SpeckleUIBindings baseBindings, string address = "https://matteo-dev.appui.speckle.systems/#/")
     : base(baseBindings, address)
 {
     InitializeComponent();
 }