private void btnExport_Click(object sender, EventArgs e) { base.Enabled = false; (new Thread(() => { string str = TranslationManager.ExportTranslationFiles(this.nav, this.cbExportDialogue.Checked, this.cbExportChangesOnly.Checked); base.BeginInvoke(new MethodInvoker(() => { if (!str.Contains(":")) { MessageBox.Show(str, "导出失败", MessageBoxButtons.OK, MessageBoxIcon.Hand); } else if (!this.cbExportDialogue.Checked) { MessageBox.Show(string.Format("已导出基本游戏数据到 {0}.", str), "导出完成", MessageBoxButtons.OK); } else { MessageBox.Show(string.Format("已导出基本游戏数据与对话到 {0}.", str), "导出完成", MessageBoxButtons.OK); } this.Enabled = true; })); }) { IsBackground = true }).Start(); }