public void Redo(Bitmap selection, RegionFile region, Bitmap terrainOverlay, Bitmap biomeOverlay, ref String[,] tooltips, Bitmap populateOverlay, UpdateStatus updateStatus)
{
if (!MoveNext())
return;
if (undoStack.Last.Value.PreviousAction == null)
{
throw new Exception("Redo sanity check failed.");
}
if (undoStack.Last.Value is SelectionAction)
{
ApplySelectionState((SelectionAction)undoStack.Last.Value, selection);
}
else if (undoStack.Last.Value is BiomeAction)
{
ApplyBiomeState((BiomeAction)undoStack.Last.Value, region, terrainOverlay, biomeOverlay, ref tooltips, updateStatus);
}
else if (undoStack.Last.Value is PopulateAction)
{
ApplyPopulateState((PopulateAction)undoStack.Last.Value, region, populateOverlay);
}
OnChange();
}