private void btnImport_Click(object sender, EventArgs e) { if (TranslationManager.TranslationMode) { base.Enabled = false; (new Thread(() => { int num; bool flag = TranslationManager.ImportTranslationFiles(this.nav, out num); base.BeginInvoke(new MethodInvoker(() => { if (!flag) { MessageBox.Show("导入错误. 请再次尝试.", "导入错误", MessageBoxButtons.OK); } else { MessageBox.Show(string.Concat("已导入对话行: ", num.ToString()), "导入成功", MessageBoxButtons.OK); if (num > 0) { this.nav.HasChanges = true; this.navTranslation.UpdateList(""); } } this.Enabled = true; })); }) { IsBackground = true }).Start(); } }