Example #1
0
        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();
            }
        }
Example #2
0
 protected void SetDisplayText(string text)
 {
     GameFileView.SetDisplayText(text);
 }