From 2da47f25976cf638319b64933344633dc07eb2e7 Mon Sep 17 00:00:00 2001 From: john-ciq <87781711+john-ciq@users.noreply.github.com> Date: Fri, 17 May 2024 09:30:40 -0400 Subject: [PATCH] Removed incorrect code --- WPFExample/MainWindow.xaml.cs | 12 ------------ WinformExample/FormExample.cs | 4 ++-- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/WPFExample/MainWindow.xaml.cs b/WPFExample/MainWindow.xaml.cs index cb8bbf7..b4c4603 100644 --- a/WPFExample/MainWindow.xaml.cs +++ b/WPFExample/MainWindow.xaml.cs @@ -382,18 +382,6 @@ await FSBL.getDispatcher().Invoke(async delegate //main thread //}); WindowReady?.Invoke(this, EventArgs.Empty); - - _ = Task.Run(async () => - { - await Task.Delay(5000); - Dispatcher.Invoke(delegate - { - Width = 1600; - Height = 60; - Top = 200; - Left = 200; - }); - }); } private void Logger_OnLog(object sender, JObject e) diff --git a/WinformExample/FormExample.cs b/WinformExample/FormExample.cs index 85eb8ae..bdfdd87 100644 --- a/WinformExample/FormExample.cs +++ b/WinformExample/FormExample.cs @@ -141,8 +141,8 @@ private async void FinsembleConnected(object sender, EventArgs e) // Example for getting Spawnable component list var response = await FSBL.ConfigClient.Get(new[] { "finsemble", "components" }); HandleComponentsList(response); - - // FSBL.PublishReady(); + + FSBL.PublishReady(); } private void HandleContext(Context context, IContextMetadata metadata)