diff options
| author | Roy <Roy.mail.net@gmail.com> | 2022-12-20 13:48:23 +0200 |
|---|---|---|
| committer | Roy <Roy.mail.net@gmail.com> | 2022-12-20 13:48:23 +0200 |
| commit | dbbed260e777d217cc3e897ae31483af183aaabc (patch) | |
| tree | 40488db6e4a8119054ca78bacf6ad458a00670b5 /Software/Visual_Studio/FSE/Tango.FSE.UI | |
| parent | 2daf438fd6902138b4229e21a8d67b02da778599 (diff) | |
| download | Tango-dbbed260e777d217cc3e897ae31483af183aaabc.tar.gz Tango-dbbed260e777d217cc3e897ae31483af183aaabc.zip | |
Implemented FSE/RSM TCP Connection By IP.
Diffstat (limited to 'Software/Visual_Studio/FSE/Tango.FSE.UI')
| -rw-r--r-- | Software/Visual_Studio/FSE/Tango.FSE.UI/Panes/MachineConnectionPaneVM.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/Panes/MachineConnectionPaneVM.cs b/Software/Visual_Studio/FSE/Tango.FSE.UI/Panes/MachineConnectionPaneVM.cs index 32553fe0f..c70d38a56 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.UI/Panes/MachineConnectionPaneVM.cs +++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/Panes/MachineConnectionPaneVM.cs @@ -43,6 +43,7 @@ namespace Tango.FSE.UI.Panes _filter = value; RaisePropertyChangedAuto(); _tcpMachinesView?.Refresh(); _signalRMachinesView?.Refresh(); + OnFilterChanged(); } } @@ -326,10 +327,21 @@ namespace Tango.FSE.UI.Panes if (machine != null) { - return machine.SerialNumber.ToLower().Contains(Filter.ToStringOrEmpty().ToLower()); + return machine.SerialNumber.ToLower().Contains(Filter.ToStringOrEmpty().ToLower()) || (machine.GetType() == typeof(ExternalBridgeTcpClient) && machine.IPAddress == Filter); } return true; } + + private void OnFilterChanged() + { + if (Filter.IsNotNullOrEmpty()) + { + Task.Factory.StartNew(() => + { + _scanner.TryGetMachineByIP(Filter); + }); + } + } } } |
