private void mapFilenamesToTADToolStripMenuItem_Click(object sender, EventArgs e) { if (m_cacheFile == null || m_tadFile == null) { return; } FilenameDatabase filenameDB = new FilenameDatabase(); LoadingDialog loadingDialog = new LoadingDialog(); loadingDialog.SetData(filenameDB); Thread thread = new Thread(delegate() { filenameDB.MapFilenamesToTADInstance(m_cacheFile); }); loadingDialog.ShowDialog(thread); DescriptionDatabase descDB = new DescriptionDatabase(); loadingDialog = new LoadingDialog(); loadingDialog.SetData(descDB); thread = new Thread(delegate() { descDB.MapDescriptionToTADInstance(m_tadFile); }); loadingDialog.ShowDialog(thread); tadDataTable1.SetCache(m_cacheFile); m_cacheFile.Write(m_cacheFile.Filename); }