private void RunNext() { if (chkList.CheckedIndices.Count == 0) { this.Invoke((MethodInvoker) delegate { button1.Enabled = true; chkList.Enabled = true; }); SQLData.Instance.Dump(wzExtractionDir.Text + "\\Data.sql"); SqlFileItemOptions.EndOfSQL(); SqlFileItemOptions.createSQLFile(wzExtractionDir.Text + "\\Data_Item_Options.sql"); SQLStrings.Instance.Dump(wzExtractionDir.Text + "\\Data_Strings.sql"); ItemInformation.Instance.Finish(wzExtractionDir.Text + "\\Data_Itemdata.sql"); SqlFileItemSocket.Instance.Dump(wzExtractionDir.Text + "\\Data_NebuliteInfo.sql"); FamiliarInfoSQL.Instance.Dump(wzExtractionDir.Text + "\\Data_FamiliarInfo.sql"); return; } selected = chkList.CheckedIndices[0]; this.Invoke((MethodInvoker) delegate { chkList.SetItemCheckState(selected, CheckState.Unchecked); }); if (selected == 0) { (new System.Threading.Thread(() => { new CharacterExtractor(wzExtractionDir.Text, wzFilesDir.Text, version).Start(); RunNext(); }) { IsBackground = true }).Start(); } else if (selected == 1) { (new System.Threading.Thread(() => { new StringsExtractor(wzExtractionDir.Text, wzFilesDir.Text, version).Start(); RunNext(); }) { IsBackground = true }).Start(); } else if (selected == 2) { (new System.Threading.Thread(() => { new PassiveBuffExtractor(wzExtractionDir.Text, wzFilesDir.Text, version).Start(); RunNext(); }) { IsBackground = true }).Start(); } else if (selected == 3) { (new System.Threading.Thread(() => { new ItemsExtractor(wzExtractionDir.Text, wzFilesDir.Text, version).Start(); RunNext(); }) { IsBackground = true }).Start(); } else if (selected == 4) { (new System.Threading.Thread(() => { new GuildInfoExtractor(wzExtractionDir.Text, wzFilesDir.Text, version).Start(); RunNext(); }) { IsBackground = true }).Start(); } else if (selected == 5) { (new System.Threading.Thread(() => { new ZMAPExporter(wzExtractionDir.Text, wzFilesDir.Text, version).Start(); RunNext(); }) { IsBackground = true }).Start(); } else if (selected == 6) { (new System.Threading.Thread(() => { new EtcExporter(wzExtractionDir.Text, wzFilesDir.Text, version).Start(); RunNext(); }) { IsBackground = true }).Start(); } else if (selected == 7) { (new System.Threading.Thread(() => { new EffectsExporter(wzExtractionDir.Text, wzFilesDir.Text, version).Start(); RunNext(); }) { IsBackground = true }).Start(); } }