diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-03-12 22:39:21 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-03-12 22:39:21 +0200 |
| commit | 22252fc600c5256268a992bf980b42b75910ff08 (patch) | |
| tree | 2f585b6d0c174e68d4f65de256ad2558b33d50b0 /Software/Visual_Studio/Tango.Integration/ExternalBridge | |
| parent | cff592339ff36d6986d78597f5ef7fe25decce56 (diff) | |
| download | Tango-22252fc600c5256268a992bf980b42b75910ff08.tar.gz Tango-22252fc600c5256268a992bf980b42b75910ff08.zip | |
Implemented ToggleIconButton + Logs Pane.
Implemented scrollable main layout.
Bottom status bar..
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/ExternalBridge')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeTcpClient.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeTcpClient.cs b/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeTcpClient.cs index 5b59429d7..fbfa6b0ca 100644 --- a/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeTcpClient.cs +++ b/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeTcpClient.cs @@ -31,6 +31,8 @@ namespace Tango.Integration.ExternalBridge { private bool _logs_sent; + public event EventHandler<LogItemBase> ApplicationLogAvailable; + #region Properties private String _serialNumber; @@ -72,6 +74,8 @@ namespace Tango.Integration.ExternalBridge } } + public bool InjectApplicationLogsToDefaultLogManager { get; set; } = true; + /// <summary> /// Gets a value indicating whether this client requires authentication. /// </summary> @@ -205,7 +209,13 @@ namespace Tango.Integration.ExternalBridge { LogItemBase log = LogItemBase.Deserialize(response.Message.LogItem.ToArray()); log.LogObject = "External Bridge"; - LogManager.Log(log); + + if (InjectApplicationLogsToDefaultLogManager) + { + LogManager.Log(log); + } + + ApplicationLogAvailable?.Invoke(this, log); } } catch (Exception ex) |
