- Remove cookSetUpTable button and event handler.
- Rename the heidiSetUpTableButton to setUpTableButton
Note: Be sure to rename the event handler as well.
- Remove the string parameter from the Restaurant's SetUpTable method.
- Remove the string parameter from the Restaurant's FindTableSetter method.
- Loop through the list of servers to find one that is not busy and store it in a local variable.
- If the local table setter variable remains null, then call GetBackupTableSetter to set the variable before returning it.
- Check your work:
- Within the Set Up Table button click, set the IsBusy property of both waitresses to true.
- Run the application
- Within the Set Up Table button click, set the IsBusy property of both waitresses to false.