public void SetDetails(clsGenre prGenre) { _Genre = prGenre; UpdateDisplay(prGenre); if (!this.Enabled) { ShowDialog(); } }
private void UpdateDisplay(clsGenre prGenre) { lstGames.DataSource = null; if (_Genre.GameList != null) { lstGames.DataSource = prGenre.GameList; } this.Text = string.Format("Admin - {0} Games", prGenre.GenreName); lblSubGenres.Text = string.Format("Sub Genres: {0}", prGenre.SubGenres); }