//*************************************************************************
    //  Constructor: AutomatedGraphImageUserSettingsDialog()
    //
    /// <summary>
    /// Initializes a new instance of the <see
    /// cref="AutomatedGraphImageUserSettingsDialog" /> class.
    /// </summary>
    ///
    /// <param name="automatedGraphImageUserSettingsUserSettings">
    /// The object being edited.
    /// </param>
    //*************************************************************************

    public AutomatedGraphImageUserSettingsDialog
    (
        AutomatedGraphImageUserSettings
            automatedGraphImageUserSettingsUserSettings
    )
    {
        Debug.Assert(automatedGraphImageUserSettingsUserSettings != null);
        automatedGraphImageUserSettingsUserSettings.AssertValid();

        m_oAutomatedGraphImageUserSettings =
            automatedGraphImageUserSettingsUserSettings;

        // 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_oAutomatedGraphImageUserSettingsDialogUserSettings =
            new AutomatedGraphImageUserSettingsDialogUserSettings(this);

        m_oHeaderFooterFont =
            m_oAutomatedGraphImageUserSettings.HeaderFooterFont;

        InitializeComponent();
        DoDataExchange(false);

        AssertValid();
    }
コード例 #2
0
        //*************************************************************************
        //  Constructor: AutomatedGraphImageUserSettingsDialog()
        //
        /// <summary>
        /// Initializes a new instance of the <see
        /// cref="AutomatedGraphImageUserSettingsDialog" /> class.
        /// </summary>
        ///
        /// <param name="automatedGraphImageUserSettingsUserSettings">
        /// The object being edited.
        /// </param>
        //*************************************************************************

        public AutomatedGraphImageUserSettingsDialog
        (
            AutomatedGraphImageUserSettings
            automatedGraphImageUserSettingsUserSettings
        )
        {
            Debug.Assert(automatedGraphImageUserSettingsUserSettings != null);
            automatedGraphImageUserSettingsUserSettings.AssertValid();

            m_oAutomatedGraphImageUserSettings =
                automatedGraphImageUserSettingsUserSettings;

            // 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_oAutomatedGraphImageUserSettingsDialogUserSettings =
                new AutomatedGraphImageUserSettingsDialogUserSettings(this);

            m_oHeaderFooterFont =
                m_oAutomatedGraphImageUserSettings.HeaderFooterFont;

            InitializeComponent();
            DoDataExchange(false);

            AssertValid();
        }