ProfilerX.AddAppDialog.OnSystemLost C# (CSharp) Method

OnSystemLost() private method

private OnSystemLost ( DiscoveredSystem lostSystem ) : void
lostSystem DiscoveredSystem
return void
        private void OnSystemLost(DiscoveredSystem lostSystem)
        {
            for(int i = 0; i < remoteClientList.Items.Count; ++i)
            {
                if ((remoteClientList.Items[i] as RemoteSystemEntry).IsEqual(lostSystem))
                {
                    remoteClientList.Items.RemoveAt(i);
                    break;
                }
            }
        }