callmeyan 32e85c62c0 优化日志记录、资源管理及功能支持
- 引入 log4net 库,统一日志记录方式,提升可维护性。
- 优化异常处理,增加详细日志记录,增强代码健壮性。
- 调整资源文件引用,新增图标资源,删除无用资源。
- 优化文档事件处理逻辑,改进面板显示与隐藏逻辑。
- 增加对 WPS 环境的支持,动态调整功能行为。
- 禁用部分功能(如常识性检测、客服、升级和帮助)。
- 删除冗余代码,清理注释,统一代码风格。
- 更新程序集版本至 2.2.5,改进调试与生产环境配置。
2025-05-08 13:57:12 +08:00

43 lines
1.2 KiB
C#

namespace AIProofread.core
{
public class AppModule
{
/// <summary>
/// 是否启用导出校对结果
/// </summary>
public const bool ENABLE_EXPORT_PROOFREAD_RESULT = true;
/// <summary>
/// 是否词库管理
/// </summary>
public const bool ENABLE_LEXICON_MANAGE = true;
/// <summary>
/// 是否启用常识性检测
/// </summary>
public const bool ENABLE_COMMONSENSE_CHECK = false;
/// <summary>
/// 设置功能
/// </summary>
public const bool ENABLE_SETTING = true;
/// <summary>
/// 是否校对功能
/// </summary>
public const bool ENABLE_PROOFREAD = true;
/// <summary>
/// 优先查全
/// </summary>
public const bool ENABLE_PROOFREAD_FULL = true;
/// <summary>
/// 优先查准exact
/// </summary>
public const bool ENABLE_PROOFREAD_EXACT = true;
public const bool ENABLE_SAVE_CACHE = true;
public const bool ENABLE_LOAD_CACHE = true;
public const bool ENABLE_CUSTOMER_SERVICE = false;
public const bool ENABLE_UPGRADE = false;
public const bool ENABLE_HELP = false;
}
}