상속: NodeXLApplicationSettingsBase
예제 #1
0
        //*************************************************************************
        //  Constructor: ImportDataUserSettingsDialog()
        //
        /// <summary>
        /// Initializes a new instance of the <see
        /// cref="ImportDataUserSettingsDialog" /> class.
        /// </summary>
        ///
        /// <param name="importDataUserSettings">
        /// The object being edited.
        /// </param>
        ///
        /// <param name="plugInUserSettings">
        /// The object being edited.
        /// </param>
        ///
        /// <param name="thisWorkbook">
        /// Workbook containing the graph contents.
        /// </param>
        //*************************************************************************

        public ImportDataUserSettingsDialog
        (
            ImportDataUserSettings importDataUserSettings,
            PlugInUserSettings plugInUserSettings,
            ThisWorkbook thisWorkbook
        )
        {
            Debug.Assert(importDataUserSettings != null);
            importDataUserSettings.AssertValid();
            Debug.Assert(thisWorkbook != null);

            m_oImportDataUserSettings = importDataUserSettings;
            m_oPlugInUserSettings     = plugInUserSettings;
            m_oThisWorkbook           = thisWorkbook;

            // 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_oImportDataUserSettingsDialogUserSettings =
                new ImportDataUserSettingsDialogUserSettings(this);

            InitializeComponent();
            DoDataExchange(false);

            AssertValid();
        }
    //*************************************************************************
    //  Constructor: ImportDataUserSettingsDialog()
    //
    /// <summary>
    /// Initializes a new instance of the <see
    /// cref="ImportDataUserSettingsDialog" /> class.
    /// </summary>
    ///
    /// <param name="importDataUserSettings">
    /// The object being edited.
    /// </param>
    ///
    /// <param name="plugInUserSettings">
    /// The object being edited.
    /// </param>
    ///
    /// <param name="thisWorkbook">
    /// Workbook containing the graph contents.
    /// </param>
    //*************************************************************************

    public ImportDataUserSettingsDialog
    (
        ImportDataUserSettings importDataUserSettings,
        PlugInUserSettings plugInUserSettings,
        ThisWorkbook thisWorkbook
    )
    {
        Debug.Assert(importDataUserSettings != null);
        importDataUserSettings.AssertValid();
        Debug.Assert(thisWorkbook != null);

        m_oImportDataUserSettings = importDataUserSettings;
		m_oPlugInUserSettings = plugInUserSettings;
        m_oThisWorkbook = thisWorkbook;

        // 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_oImportDataUserSettingsDialogUserSettings =
            new ImportDataUserSettingsDialogUserSettings(this);

        InitializeComponent();
        DoDataExchange(false);

        AssertValid();
    }