private void SetAllDirtyFlags() { // Ensure all data types are marked as requiring a save. foreach (var dataType in Enum.GetValues(typeof(ApplicationDataType))) { this.dirtyData[(ApplicationDataType) dataType] = true; } } }