//************************************************************************* // Constructor: NumericComparisonColumnAutoFillUserSettingsDialog() // /// <overloads> /// Initializes a new instance of the <see /// cref="NumericComparisonColumnAutoFillUserSettingsDialog" /> class. /// </overloads> /// /// <summary> /// Initializes a new instance of the <see /// cref="NumericComparisonColumnAutoFillUserSettingsDialog" /> class with /// a <see cref="NumericComparisonColumnAutoFillUserSettings" /> object. /// </summary> /// /// <param name="numericComparisonColumnAutoFillUserSettings"> /// Object to edit. /// </param> /// /// <param name="dialogCaption"> /// Dialog caption. /// </param> /// /// <param name="label1Text"> /// Text to display above the comparison controls. /// </param> /// /// <param name="label2Text"> /// Text to display below the comparison controls. /// </param> //************************************************************************* public NumericComparisonColumnAutoFillUserSettingsDialog ( NumericComparisonColumnAutoFillUserSettings numericComparisonColumnAutoFillUserSettings, String dialogCaption, String label1Text, String label2Text ) : this() { Debug.Assert(numericComparisonColumnAutoFillUserSettings != null); Debug.Assert(!String.IsNullOrEmpty(dialogCaption)); Debug.Assert(!String.IsNullOrEmpty(label1Text)); Debug.Assert(!String.IsNullOrEmpty(label2Text)); m_oNumericComparisonColumnAutoFillUserSettings = numericComparisonColumnAutoFillUserSettings; this.Text = dialogCaption; lblLabel1.Text = label1Text; lblLabel2.Text = label2Text; cbxComparisonOperator.PopulateWithObjectsAndText( ComparisonOperator.LessThan, "Less than", ComparisonOperator.LessThanOrEqual, "Less than or equal to", ComparisonOperator.Equal, "Equal to", ComparisonOperator.NotEqual, "Not equal to", ComparisonOperator.GreaterThan, "Greater than", ComparisonOperator.GreaterThanOrEqual, "Greater than or equal to" ); // Instantiate an object that saves and retrieves the position of this // dialog. Note that the object automatically saves the settings when // the form closes. m_oNumericComparisonColumnAutoFillUserSettingsDialogUserSettings = new NumericComparisonColumnAutoFillUserSettingsDialogUserSettings( this); DoDataExchange(false); AssertValid(); }
//************************************************************************* // Constructor: NumericComparisonColumnAutoFillUserSettingsDialog() // /// <overloads> /// Initializes a new instance of the <see /// cref="NumericComparisonColumnAutoFillUserSettingsDialog" /> class. /// </overloads> /// /// <summary> /// Initializes a new instance of the <see /// cref="NumericComparisonColumnAutoFillUserSettingsDialog" /> class with /// a <see cref="NumericComparisonColumnAutoFillUserSettings" /> object. /// </summary> /// /// <param name="numericComparisonColumnAutoFillUserSettings"> /// Object to edit. /// </param> /// /// <param name="dialogCaption"> /// Dialog caption. /// </param> /// /// <param name="label1Text"> /// Text to display above the comparison controls. /// </param> /// /// <param name="label2Text"> /// Text to display below the comparison controls. /// </param> //************************************************************************* public NumericComparisonColumnAutoFillUserSettingsDialog( NumericComparisonColumnAutoFillUserSettings numericComparisonColumnAutoFillUserSettings, String dialogCaption, String label1Text, String label2Text ) : this() { Debug.Assert(numericComparisonColumnAutoFillUserSettings != null); Debug.Assert( !String.IsNullOrEmpty(dialogCaption) ); Debug.Assert( !String.IsNullOrEmpty(label1Text) ); Debug.Assert( !String.IsNullOrEmpty(label2Text) ); m_oNumericComparisonColumnAutoFillUserSettings = numericComparisonColumnAutoFillUserSettings; this.Text = dialogCaption; lblLabel1.Text = label1Text; lblLabel2.Text = label2Text; cbxComparisonOperator.PopulateWithObjectsAndText( ComparisonOperator.LessThan, "Less than", ComparisonOperator.LessThanOrEqual, "Less than or equal to", ComparisonOperator.Equal, "Equal to", ComparisonOperator.NotEqual, "Not equal to", ComparisonOperator.GreaterThan, "Greater than", ComparisonOperator.GreaterThanOrEqual, "Greater than or equal to" ); // Instantiate an object that saves and retrieves the position of this // dialog. Note that the object automatically saves the settings when // the form closes. m_oNumericComparisonColumnAutoFillUserSettingsDialogUserSettings = new NumericComparisonColumnAutoFillUserSettingsDialogUserSettings( this); DoDataExchange(false); AssertValid(); }