コード例 #1
0
        //*************************************************************************
        //  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);

            cbxBoxLayoutAlgorithm.PopulateWithEnumValues(
                typeof(BoxLayoutAlgorithm), true);

            cbxIntergroupEdgeStyle.PopulateWithEnumValues(
                typeof(IntergroupEdgeStyle), true);

            DoDataExchange(false);

            AssertValid();
        }
コード例 #2
0
    //*************************************************************************
    //  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);

        cbxBoxLayoutAlgorithm.PopulateWithEnumValues(
            typeof(BoxLayoutAlgorithm), true);

        cbxIntergroupEdgeStyle.PopulateWithEnumValues(
            typeof(IntergroupEdgeStyle), true);

        DoDataExchange(false);

        AssertValid();
    }