aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2022-12-20 13:48:23 +0200
committerRoy <Roy.mail.net@gmail.com>2022-12-20 13:48:23 +0200
commitdbbed260e777d217cc3e897ae31483af183aaabc (patch)
tree40488db6e4a8119054ca78bacf6ad458a00670b5 /Software/Visual_Studio/FSE
parent2daf438fd6902138b4229e21a8d67b02da778599 (diff)
downloadTango-dbbed260e777d217cc3e897ae31483af183aaabc.tar.gz
Tango-dbbed260e777d217cc3e897ae31483af183aaabc.zip
Implemented FSE/RSM TCP Connection By IP.
Diffstat (limited to 'Software/Visual_Studio/FSE')
-rw-r--r--Software/Visual_Studio/FSE/Tango.FSE.UI/Panes/MachineConnectionPaneVM.cs14
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);
+ });
+ }
+ }
}
}