//关闭模板文件 private void btnModulesClose_Click(object sender, EventArgs e) { bool bSave = false; if (DialogResult.Yes == MessageBox.Show("是否保存修改?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question)) { bSave = true; } int nRet = CSharpInterface.HS_CloseMarkFile(m_strHansFileName, bSave); if (nRet == 0) { tbNote.Text = "CloseMarkFile success!"; Preview(); SelectSize(); } else { ShowLastError(); } }