Commit 61f03dc9 authored by 潘栩锋's avatar 潘栩锋 🚴

添加 标题自定义记录文件 title.json

parent e378cb74
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;
using System.Text; using System.Text;
...@@ -74,4 +75,23 @@ namespace Misc ...@@ -74,4 +75,23 @@ namespace Misc
} }
} }
} }
public class MainWindowTitle
{
public string Title;
public bool Load()
{
try
{
string json = File.ReadAllText("title.json");
Newtonsoft.Json.JsonConvert.PopulateObject(json, this);
return true;
}
catch
{
return false;
}
}
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment