Cleanup with resharper (mostly removing redundancies & using collection.Length/Count properties instead of the Count method)
This commit is contained in:
@@ -119,8 +119,9 @@ namespace Barotrauma.Networking
|
||||
|
||||
text = text.ToLower();
|
||||
|
||||
foreach (GUITextBlock textBlock in listBox.children)
|
||||
foreach (GUIComponent child in listBox.children)
|
||||
{
|
||||
var textBlock = child as GUITextBlock;
|
||||
if (textBlock == null) continue;
|
||||
|
||||
textBlock.Visible = textBlock.Text.ToLower().Contains(text);
|
||||
|
||||
Reference in New Issue
Block a user