diff --git a/TGControlPanel/ControlPanel.cs b/TGControlPanel/ControlPanel.cs index e4ce2968b6..a7a8b9fc4c 100644 --- a/TGControlPanel/ControlPanel.cs +++ b/TGControlPanel/ControlPanel.cs @@ -2,6 +2,7 @@ using System.Drawing; using System.Windows.Forms; using TGServiceInterface; +using TGServiceInterface.Components; namespace TGControlPanel { @@ -23,6 +24,11 @@ namespace TGControlPanel { Interface = I; InitializeComponent(); + if (Interface.IsRemoteConnection) + { + var splits = Interface.GetComponent().Version().Split(' '); + Text = String.Format("TGS {0}: {1}:{2}", splits[splits.Length - 1], Interface.HTTPSURL, Interface.HTTPSPort); + } if (Interface.VersionMismatch(out string error) && MessageBox.Show(error, "Warning", MessageBoxButtons.OKCancel) == DialogResult.Cancel) { Close(); diff --git a/TGServiceInterface/Interface.cs b/TGServiceInterface/Interface.cs index 34d4460ff7..b07c8e6e6e 100644 --- a/TGServiceInterface/Interface.cs +++ b/TGServiceInterface/Interface.cs @@ -40,12 +40,12 @@ namespace TGServiceInterface /// /// If this is set, we will try and connect to an HTTPS server running at this address /// - readonly string HTTPSURL; + public readonly string HTTPSURL; /// /// The port used by the service /// - readonly ushort HTTPSPort; + public readonly ushort HTTPSPort; /// /// Username for remote operations