- 修改 `MainWindow.xaml.cs` 中的登录响应逻辑,确保获取 `token` 并检查聊天消息状态。 - 更改 `chatclient.csproj` 的目标框架为 `net8.0-windows7.0`,并设置调试类型为 `embedded`。 - 在 `App.config` 中添加用户设置配置,支持聊天信息保存上限。 - 新增 `User` 类于 `ChatData.cs`,存储用户信息。 - 在 `Program.cs` 中实现客户端连接的锁定机制,确保线程安全。 - 修正 `log4net.config` 中的日志文件路径格式。 - 新增 `Settings1.Designer.cs` 和 `Settings1.settings` 文件以管理用户设置。
39 lines
1.5 KiB
C#
39 lines
1.5 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// 此代码由工具生成。
|
|
// 运行时版本:4.0.30319.42000
|
|
//
|
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
|
// 重新生成代码,这些更改将会丢失。
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace chatserver.config {
|
|
|
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.13.0.0")]
|
|
internal sealed partial class Settings1 : global::System.Configuration.ApplicationSettingsBase {
|
|
|
|
private static Settings1 defaultInstance = ((Settings1)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings1())));
|
|
|
|
public static Settings1 Default {
|
|
get {
|
|
return defaultInstance;
|
|
}
|
|
}
|
|
|
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Configuration.DefaultSettingValueAttribute("100")]
|
|
public int 聊天信息保存上限 {
|
|
get {
|
|
return ((int)(this["聊天信息保存上限"]));
|
|
}
|
|
set {
|
|
this["聊天信息保存上限"] = value;
|
|
}
|
|
}
|
|
}
|
|
}
|