Beispiel #1
0
        //*************************************************************************
        //  Constructor: VertexShapeColumnAutoFillUserSettingsDialog()
        //
        /// <overloads>
        /// Initializes a new instance of the <see
        /// cref="VertexShapeColumnAutoFillUserSettingsDialog" /> 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>
        //*************************************************************************

        public VertexShapeColumnAutoFillUserSettingsDialog
        (
            NumericComparisonColumnAutoFillUserSettings
            numericComparisonColumnAutoFillUserSettings
        )
            : this()
        {
            Debug.Assert(numericComparisonColumnAutoFillUserSettings != null);

            m_oNumericComparisonColumnAutoFillUserSettings =
                numericComparisonColumnAutoFillUserSettings;

            // 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_oVertexShapeColumnAutoFillUserSettingsDialogUserSettings =
                new VertexShapeColumnAutoFillUserSettingsDialogUserSettings(this);

            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"
                );

            (new VertexShapeConverter()).PopulateComboBox(cbxVertexShape, false);

            DoDataExchange(false);

            AssertValid();
        }
        //*************************************************************************
        //  Constructor: VertexShapeColumnAutoFillUserSettingsDialog()
        //
        /// <overloads>
        /// Initializes a new instance of the <see
        /// cref="VertexShapeColumnAutoFillUserSettingsDialog" /> 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>
        //*************************************************************************
        public VertexShapeColumnAutoFillUserSettingsDialog(
            NumericComparisonColumnAutoFillUserSettings
            numericComparisonColumnAutoFillUserSettings
            )
            : this()
        {
            Debug.Assert(numericComparisonColumnAutoFillUserSettings != null);

            m_oNumericComparisonColumnAutoFillUserSettings =
            numericComparisonColumnAutoFillUserSettings;

            // 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_oVertexShapeColumnAutoFillUserSettingsDialogUserSettings =
            new VertexShapeColumnAutoFillUserSettingsDialogUserSettings(this);

            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"
            );

            ( new VertexShapeConverter() ).PopulateComboBox(cbxVertexShape, false);

            DoDataExchange(false);

            AssertValid();
        }