private void btnAdd_Click(object sender, EventArgs e) { AddGame addGame = new AddGame(); addGame.setOperationType(1); addGame.ShowDialog(); loadGamesFunc(); }
private void btnEdit_Click(object sender, EventArgs e) { if (currentGame != string.Empty) { AddGame addGame = new AddGame(); addGame.setCurrentGame(int.Parse(currentGame)); addGame.setOperationType(2); addGame.ShowDialog(); loadGamesFunc(); } }