void MainWindow_Closed(object sender, EventArgs e) { if (_dirEnum != null) { _dirEnum.StopEnumeration(); } if (_dbEngine != null) { _dbEngine.DeleteInMemoryDB(); } }