From 4919aca6d39c728a983b342b7f1f3f944940edd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fele?= Date: Thu, 8 Aug 2024 11:02:13 +0200 Subject: [PATCH] Add event RdpControl.RdpClientConfigured to allows users to customize the RdpClient in extra ways not covered by the RdpConfiguration --- .../Controls/RdpControl.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/RoyalApps.Community.Rdp.WinForms/Controls/RdpControl.cs b/src/RoyalApps.Community.Rdp.WinForms/Controls/RdpControl.cs index da7b1fa..3e98239 100644 --- a/src/RoyalApps.Community.Rdp.WinForms/Controls/RdpControl.cs +++ b/src/RoyalApps.Community.Rdp.WinForms/Controls/RdpControl.cs @@ -104,6 +104,12 @@ public class RdpControl : UserControl /// public event EventHandler? RemoteDesktopSizeChanged; + /// + /// Raised after the was created and configured, but before the connection is established. + /// This event allows users to customize the RdpClient in extra ways not covered by the . + /// + public event EventHandler? RdpClientConfigured; + /// /// Creates a new instance of the RdpControl. /// @@ -190,6 +196,8 @@ public void Connect() _canScale = false; ApplyInitialScaling(); + + this.RdpClientConfigured?.Invoke(this, EventArgs.Empty); RdpClient!.Connect(); }