准备调整基础框架组件,重构代码,将账户及参数保存代码移动到本框架

This commit is contained in:
dathlin
2017-05-03 15:50:34 +08:00
parent d3d18dc4eb
commit 119eafd6b2
5 changed files with 312 additions and 3 deletions

View File

@@ -14,14 +14,14 @@ namespace CommonLibrary
public class ServerAccounts<T> where T : UserAccount, new()
{
/// <summary>
/// 初始化造方法
/// 初始化造方法
/// </summary>
public ServerAccounts()
{
}
/// <summary>
/// 初始化造方法,将添加几个初始化账户
/// 初始化造方法,将添加几个初始化账户
/// </summary>
public ServerAccounts(IEnumerable<T> accounts)
{
@@ -226,7 +226,7 @@ namespace CommonLibrary
}
/// <summary>
/// 使用Base64编码所有的帳戶信息保存到文件
/// 使用Base64编码所有的账户信息保存到文件
/// </summary>
public void SaveFile()
{
@@ -236,6 +236,7 @@ namespace CommonLibrary
/// <summary>
/// 使用自定义的加密方法将所有账户信息保存到文件
/// </summary>
/// <param name="encrypt">加密的方式</param>
public void SaveFile(Converter<string, string> encrypt)
{
if (FileSavePath != "")