Update game list

This commit is contained in:
Loic Guegan 2022-12-25 16:39:54 +01:00
parent b9fd97c2ac
commit cd9f55f5ad
2 changed files with 6 additions and 0 deletions

View file

@ -33,4 +33,9 @@ void GameListManager::DisplayRow(long id){
void GameListManager::Clear(){
game_list->DeleteAllItems();
rows.clear();
}
void GameListManager::ClearDisplayedRow(){
game_list->DeleteAllItems();
}

View file

@ -17,6 +17,7 @@ class GameListManager {
std::vector<RType> rows;
void DisplayRow(long id);
void ClearDisplayedRow();
public:
GameListManager(wxListCtrl *game_list);
void AddGame(CType White,CType Black,CType Event,CType Round, CType Result, CType Eco);