private void exportToolStripMenuItem_Click(object sender, EventArgs e) { if (m_cacheFile == null) { return; } SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Filter = "Archive Dictonary file (*.tad)|*.tad"; if (saveFileDialog.ShowDialog() == DialogResult.OK) { string tadPath = saveFileDialog.FileName; m_cacheFile.Export(tadPath); m_tadFile = new TADFile(tadPath); FilenameDatabase.MapFilenamesToTAD(m_tadFile); DescriptionDatabase.MapDescriptionToTAD(m_tadFile); if (System.Diagnostics.Debugger.IsAttached) { if (MessageBox.Show("Do you want to unpack the TAC file?", "Unpack TAC", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { tadDataTable1.SetTAD(m_tadFile); } } m_cacheFile = new CacheFile(m_tadFile); m_cacheFile.Unpack(); tadDataTable1.SetCache(m_cacheFile); } }
private void unpackAllToolStripMenuItem_Click(object sender, EventArgs e) { if (m_cacheFile == null) { return; } m_cacheFile.Unpack(); }