Fix Update info error

This commit is contained in:
2022-05-15 10:48:16 +08:00
parent f4ad46ae53
commit 92c92e0ccb
5 changed files with 23 additions and 6 deletions

View File

@ -140,7 +140,7 @@ namespace GrasscutterTools
BeginInvoke(new Action(() =>
{
var r = MessageBox.Show(
string.Format(Resources.NewVersionInfo, info.Name, info.CraeteTime, info.Body),
string.Format(Resources.NewVersionInfo, info.Name, info.CraeteTime.ToLocalTime(), info.Body),
Resources.CheckToNewVersion,
MessageBoxButtons.YesNo,
MessageBoxIcon.Information);

View File

@ -36,7 +36,7 @@ namespace GrasscutterTools.Github
public string Url { get; set; }
public DateTime CraeteTime { get; set; }
public DateTimeOffset CraeteTime { get; set; }
public string Name { get; set; }

View File

@ -478,6 +478,8 @@ namespace GrasscutterTools.Properties {
/// <summary>
/// 查找类似 无敌
////godmode
///无限耐力
////nostamina
///升到60级
////give 102 1880200
///奶
@ -523,7 +525,7 @@ namespace GrasscutterTools.Properties {
///自杀
////killcharacter
///暗杀
////killcharacter &lt;pla [字符串的其余部分被截断]&quot;; 的本地化字符串。
//// [字符串的其余部分被截断]&quot;; 的本地化字符串。
/// </summary>
internal static string CustomCommands {
get {
@ -725,7 +727,12 @@ namespace GrasscutterTools.Properties {
}
/// <summary>
/// 查找类似 版本名:{0}\n更新时间{1}\n更新内容\n{2}\n\n是否查看更新选择否将不再提醒该版本。 的本地化字符串。
/// 查找类似 版本名:{0}
///更新时间:{1}
///更新内容:
///{2}
///--------------------------------------------
///是否查看更新?选择否将不再提醒该版本。 的本地化字符串。
/// </summary>
internal static string NewVersionInfo {
get {

View File

@ -200,7 +200,12 @@
<value>..\Resources\en-us\Monster.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="NewVersionInfo" xml:space="preserve">
<value>Name : {0}\nUpdate time : {1}\nUpdate info : \n{2}\n\nDo you want to check for updates? Selecting No will no longer remind you of this version.</value>
<value>Name : {0}
Update time : {1}
Update info :
{2}
-------------------------------------------
Do you want to check for updates? Selecting No will no longer remind you of this version.</value>
</data>
<data name="NPC" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\en-us\NPC.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>

View File

@ -203,7 +203,12 @@
<value>..\Resources\zh-cn\Monster.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="NewVersionInfo" xml:space="preserve">
<value>版本名:{0}\n更新时间{1}\n更新内容\n{2}\n\n是否查看更新选择否将不再提醒该版本。</value>
<value>版本名:{0}
更新时间:{1}
更新内容:
{2}
--------------------------------------------
是否查看更新?选择否将不再提醒该版本。</value>
</data>
<data name="NPC" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\zh-cn\NPC.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>