The BeginEdit and EndEdit(Boolean) methods are designed to implement batch modifications. This allows you to prevent generation of change notifications when changing multiple settings at the same time. To do this enclose the code that changes the properties in calls to these methods. Each call to BeginEdit must be paired with a call to EndEdit(Boolean). To ensure that EndEdit(Boolean) is always called even if an exception occurs, wrap any calls to these methods in a try...finally statement.