protected void SetDataSource(IEnumerable <IGameFile> gameFiles) { if (FilterIWads && !(Adapter is IdGamesDataAdapater)) { gameFiles = gameFiles.Except(Adapter.GetGameFileIWads()); } var args = new GameFileListEventArgs(gameFiles); DataSourceChanging?.Invoke(this, args); gameFiles = args.GameFiles; if (!gameFiles.Any()) { GameFileView.DataSource = null; GameFileView.SetDisplayText("No Results Found"); } else { GameFileView.DataSource = gameFiles.ToList(); } }
protected void SetDisplayText(string text) { GameFileView.SetDisplayText(text); }