예제 #1
0
 public MainForm()
 {
     InitializeComponent();
     library = new GameLibrary();
     library.ImportGamesFromFile();
     lblGames.DataSource = library.GetGames();
 }
예제 #2
0
        private void btnAddGame_Click(object sender, EventArgs e)
        {
            NewGameForm newGameForm = new NewGameForm();

            newGameForm.ShowDialog();

            library.ImportGamesFromFile();

            lblGames.DataSource = null;
            lblGames.DataSource = library.GetGames();
        }