private void openToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Filter = "Cache file (*.cache, *.shdcache)|*.cache;*.shdcache"; if (openFileDialog.ShowDialog() == DialogResult.OK) { m_cacheFile = new CacheFile(); if (Path.GetExtension(openFileDialog.FileName) == ".shdcache") { m_cacheFile.ConvertLegacy(openFileDialog.FileName); } else { m_cacheFile.Read(openFileDialog.FileName); } m_tadFile = m_cacheFile.TADFile; tadDataTable1.SetCache(m_cacheFile); } }