//************************************************************************* // Constructor: ImportFromWorkbookDialog() // /// <summary> /// Initializes a new instance of the <see /// cref="ImportFromWorkbookDialog" /> class. /// </summary> /// /// <param name="destinationNodeXLWorkbook"> /// Workbook into which the edges and vertices will be imported. This is /// used only to avoid including the workbook in the list of workbooks /// that can be imported; the workbook itself is not modified by this /// class. /// </param> //************************************************************************* public ImportFromWorkbookDialog ( Microsoft.Office.Interop.Excel.Workbook destinationNodeXLWorkbook ) { InitializeComponent(); // 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_oImportFromWorkbookDialogUserSettings = new ImportFromWorkbookDialogUserSettings(this); m_oGraph = null; m_oDestinationNodeXLWorkbook = destinationNodeXLWorkbook; lbxSourceWorkbook.PopulateWithOtherWorkbookNames( m_oDestinationNodeXLWorkbook); DoDataExchange(false); AssertValid(); }