private void saveAsToolStripMenuItem_Click(object sender, EventArgs e) { foreach (TabPage p in tabControl1.TabPages) { ITSCodeBox box = (ITSCodeBox)p.Controls[0]; if (!isRoot) { _curFile.EventLists[box.CommandList.AnimationCRC] = box.ApplyChanges(); } else { _curFighter[box.CommandList._parent.Type].EventLists[box.CommandList.AnimationCRC] = box.ApplyChanges(); } } if (isRoot) { FolderSelectDialog dlg = new FolderSelectDialog(); DialogResult result = dlg.ShowDialog(); if (result == DialogResult.OK) { _curFighter.Main.Export(dlg.SelectedPath + "/game.bin"); _curFighter.GFX.Export(dlg.SelectedPath + "/effect.bin"); _curFighter.SFX.Export(dlg.SelectedPath + "/sound.bin"); _curFighter.Expression.Export(dlg.SelectedPath + "/expression.bin"); _curFighter.MotionTable.Export(dlg.SelectedPath + "/Motion.mtable"); } dlg.Dispose(); } else { SaveFileDialog dlg = new SaveFileDialog { Filter = "ACMD Binary (*.bin)|*.bin|All Files (*.*)|*.*" }; DialogResult result = dlg.ShowDialog(); if (result == DialogResult.OK) { _curFile.Export(dlg.FileName); } dlg.Dispose(); } }