private void OnClose(object sender, CancelEventArgs e)
{
if (isWorking)
{
closePending = true;
if (MessageBox.Show("Are you sure?\nClosing this window will abort the import process.", "Confirm", MessageBoxButton.YesNo, MessageBoxImage.Exclamation) != MessageBoxResult.Yes)
{
closePending = false;
e.Cancel = true;
return;
}
else if (File.Exists(MylistDB.dbPath))
{
m_myList.Close();
File.Delete(MylistDB.dbPath);
}
this.DialogResult = false;
}
}