public MainForm() { InitializeComponent(); library = new GameLibrary(); library.ImportGamesFromFile(); lblGames.DataSource = library.GetGames(); }
private void btnAddGame_Click(object sender, EventArgs e) { NewGameForm newGameForm = new NewGameForm(); newGameForm.ShowDialog(); library.ImportGamesFromFile(); lblGames.DataSource = null; lblGames.DataSource = library.GetGames(); }