//************************************************************************* // Constructor: LayoutUserSettingsDialog() // /// <overloads> /// Initializes a new instance of the <see /// cref="LayoutUserSettingsDialog" /> class. /// </overloads> /// /// <summary> /// Initializes a new instance of the <see /// cref="LayoutUserSettingsDialog" /> class with a LayoutUserSettings /// object. /// </summary> /// /// <param name="layoutUserSettings"> /// The object being edited. /// </param> //************************************************************************* public LayoutUserSettingsDialog( LayoutUserSettings layoutUserSettings ) : this() { Debug.Assert(layoutUserSettings != null); layoutUserSettings.AssertValid(); m_oLayoutUserSettings = layoutUserSettings; // Instantiate an object that saves and retrieves the user settings for // this dialog. Note that the object automatically saves the settings // when the form closes. m_oLayoutUserSettingsDialogUserSettings = new LayoutUserSettingsDialogUserSettings(this); DoDataExchange(false); AssertValid(); }
//************************************************************************* // Constructor: LayoutUserSettingsDialog() // /// <overloads> /// Initializes a new instance of the <see /// cref="LayoutUserSettingsDialog" /> class. /// </overloads> /// /// <summary> /// Initializes a new instance of the <see /// cref="LayoutUserSettingsDialog" /> class with a LayoutUserSettings /// object. /// </summary> /// /// <param name="layoutUserSettings"> /// The object being edited. /// </param> //************************************************************************* public LayoutUserSettingsDialog ( LayoutUserSettings layoutUserSettings ) : this() { Debug.Assert(layoutUserSettings != null); layoutUserSettings.AssertValid(); m_oLayoutUserSettings = layoutUserSettings; // Instantiate an object that saves and retrieves the user settings for // this dialog. Note that the object automatically saves the settings // when the form closes. m_oLayoutUserSettingsDialogUserSettings = new LayoutUserSettingsDialogUserSettings(this); DoDataExchange(false); AssertValid(); }