(Formerly known as ListBoxSaveGameList, which is now obsolete)
ListBox.FillSaveGameList()
Fills the specified listbox with the save game list, sorted correctly
with the most recent game at the top of the list.
The SaveGameSlots property is updated to
contain the save game slot number for each index in the list, so that you can do:
int index = lstSaveGames.SelectedIndex;
RestoreGameSlot(lstSaveGames.SaveGameSlots[index]);
NOTE: The save game list can only hold 50 save games. If ListBox.ItemCount
returns 50 and you are doing a Save dialog box, you may want to make the
user replace an existing file rather than saving a new one.
Example:
lstSaveGames.FillSaveGameList();
will fill listbox lstSaveGames with the list of the saved games.
See Also: ListBox.FillDirList,
ListBox.ItemCount,
ListBox.SaveGameSlots,
ListBox.SelectedIndex
|