protected override void DoExport(string outPath)
{
using (var dlg = new ProgressDialogWithTask(this) { IsIndeterminate = true, AllowCancel = false, Message = ITextStrings.ksExporting_ })
{
try
{
var fxtPath = (string)m_exportList.SelectedItems[0].Tag; // read fxtPath here to prevent access to m_exportList on another thread
dlg.RunTask(DoExportWithProgress, outPath, fxtPath);
}
finally
{
Close();
}
}
}