This function is an event handler that is called every time a dialog for a part list with the specified ID is finished.