private void AddTrades(IEnumerable <Trade> trades) { if (!_securityIds.IsEmpty()) { trades = trades.Where(t => _securityIds.Contains(t.Security.Id)); } if (_volumeFilter != null && _volumeFilter > 0) { trades = trades.Where(t => t.Volume >= _volumeFilter); } TradesGrid.Trades.AddRange(trades); AlertBtn.Process(trades.Select(t => t.ToMessage())); }