/// ------------------------------------------------------------------------------------
/// <summary>
/// Implement this method to save the persistent settings for your class. Normally, this
/// should also result in recursively calling SaveSettingsNow for all children which
/// also implement ISettings.
/// </summary>
/// <remarks>Note: A form's implementation of <see cref="M:SIL.FieldWorks.Common.Controls.ISettings.SaveSettingsNow"/> normally
/// calls <see cref="M:SIL.FieldWorks.Common.Controls.Persistence.SaveSettingsNow(System.Windows.Forms.Control)"/> (after optionally saving any
/// class-specific properties).</remarks>
/// ------------------------------------------------------------------------------------
public void SaveSettingsNow()
{
CheckDisposed();
if (m_persistence != null)
{
m_persistence.SaveSettingsNow(this);
// Since Panel1 and Panel2 don't implement ISettings, we have to call
// SaveSettingsNow explicitly so that our grand-children get a chance to save
// their information!
m_persistence.SaveSettingsNow(Panel1);
m_persistence.SaveSettingsNow(Panel2);
}
}