//************************************************************************* // Constructor: ImportFromMatrixWorkbookDialog() // /// <overloads> /// Initializes a new instance of the <see /// cref="ImportFromMatrixWorkbookDialog" /> class. /// </overloads> /// /// <summary> /// Initializes a new instance of the <see /// cref="ImportFromMatrixWorkbookDialog" /> class with a workbook. /// </summary> /// /// <param name="destinationNodeXLWorkbook"> /// Workbook to which the matrix workbook will be imported. /// </param> /// /// <param name="clearDestinationTablesFirst"> /// true if the NodeXL tables in <paramref /// name="destinationNodeXLWorkbook" /> should be cleared first. /// </param> //************************************************************************* public ImportFromMatrixWorkbookDialog ( Microsoft.Office.Interop.Excel.Workbook destinationNodeXLWorkbook, Boolean clearDestinationTablesFirst ) : this() { // 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_oImportFromMatrixWorkbookDialogUserSettings = new ImportFromMatrixWorkbookDialogUserSettings(this); m_oDestinationNodeXLWorkbook = destinationNodeXLWorkbook; m_bClearDestinationTablesFirst = clearDestinationTablesFirst; lbxSourceWorkbook.PopulateWithOtherWorkbookNames( m_oDestinationNodeXLWorkbook); DoDataExchange(false); AssertValid(); }
//************************************************************************* // Constructor: ImportFromMatrixWorkbookDialog() // /// <overloads> /// Initializes a new instance of the <see /// cref="ImportFromMatrixWorkbookDialog" /> class. /// </overloads> /// /// <summary> /// Initializes a new instance of the <see /// cref="ImportFromMatrixWorkbookDialog" /> class with a workbook. /// </summary> /// /// <param name="destinationNodeXLWorkbook"> /// Workbook to which the matrix workbook will be imported. /// </param> /// /// <param name="clearDestinationTablesFirst"> /// true if the NodeXL tables in <paramref /// name="destinationNodeXLWorkbook" /> should be cleared first. /// </param> //************************************************************************* public ImportFromMatrixWorkbookDialog( Microsoft.Office.Interop.Excel.Workbook destinationNodeXLWorkbook, Boolean clearDestinationTablesFirst ) : this() { // 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_oImportFromMatrixWorkbookDialogUserSettings = new ImportFromMatrixWorkbookDialogUserSettings(this); m_oDestinationNodeXLWorkbook = destinationNodeXLWorkbook; m_bClearDestinationTablesFirst = clearDestinationTablesFirst; lbxSourceWorkbook.PopulateWithOtherWorkbookNames( m_oDestinationNodeXLWorkbook); DoDataExchange(false); AssertValid(); }