//************************************************************************* // Constructor: ConvertNodeXLWorkbookDialog() // /// <overloads> /// Initializes a new instance of the <see /// cref="ConvertNodeXLWorkbookDialog" /> class. /// </overloads> /// /// <summary> /// Initializes a new instance of the <see /// cref="ConvertNodeXLWorkbookDialog" /> class with an Excel Application /// object. /// </summary> /// /// <param name="application"> /// Excel application. /// </param> //************************************************************************* public ConvertNodeXLWorkbookDialog ( Microsoft.Office.Interop.Excel.Application application ) : 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_oConvertNodeXLWorkbookDialogUserSettings = new ConvertNodeXLWorkbookDialogUserSettings(this); m_oApplication = application; m_sOtherWorkbookFile = String.Empty; m_sConvertedWorkbookFile = String.Empty; m_oOpenFileDialog = new OpenFileDialog(); m_oOpenFileDialog.Filter = "Excel Workbook (*.xlsx)|*.xlsx|All files (*.*)|*.*"; m_oOpenFileDialog.Title = "Browse for NodeXL Workbook"; DoDataExchange(false); AssertValid(); }
//************************************************************************* // Constructor: ConvertNodeXLWorkbookDialog() // /// <overloads> /// Initializes a new instance of the <see /// cref="ConvertNodeXLWorkbookDialog" /> class. /// </overloads> /// /// <summary> /// Initializes a new instance of the <see /// cref="ConvertNodeXLWorkbookDialog" /> class with an Excel Application /// object. /// </summary> /// /// <param name="application"> /// Excel application. /// </param> //************************************************************************* public ConvertNodeXLWorkbookDialog ( Microsoft.Office.Interop.Excel.Application application ) : 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_oConvertNodeXLWorkbookDialogUserSettings = new ConvertNodeXLWorkbookDialogUserSettings(this); m_oApplication = application; m_sOtherWorkbookFile = String.Empty; m_sConvertedWorkbookFile = String.Empty; m_oOpenFileDialog = new OpenFileDialog(); m_oOpenFileDialog.Filter = "Excel Workbook (*.xlsx)|*.xlsx|All files (*.*)|*.*"; m_oOpenFileDialog.Title = "Browse for NodeXL Workbook"; DoDataExchange(false); AssertValid(); }