btnOK_Click
(
object sender,
EventArgs e
)
{
AssertValid();
if (
!DoDataExchange(true)
||
!ConvertNodeXLWorkbook(m_sOtherWorkbookFile,
m_sConvertedWorkbookFile)
)
{
return;
}
if (m_oConvertNodeXLWorkbookDialogUserSettings.OpenConvertedWorkbook)
{
try
{
ExcelUtil.OpenWorkbook(m_sConvertedWorkbookFile,
m_oApplication);
}
catch (Exception)
{
this.ShowWarning("The converted workbook couldn't be opened.");
return;
}
}
this.Close();
}