### 2025-01-13 星期一更新
------ #### SuperDesign V3.0.2501.1302 - *.#### 项目功能 - *.[新增]更新日志新增支持记录每一行的新增时间。 - *.[新增]生成Html日志新增支持####标签转为h4标签。 - *.[新增]更新日志新增支持记录分组功能。 - *.[修复]修复项目窗口里的文件夹标签页列表视图没对齐的BUG。 - *.[修复]修复更新日志页面发布日志后会导致周期信息无法显示的BUG。
This commit is contained in:
1 parent
d240361f74
commit
2b0b38dd14
8 files changed
+135
-18
No files matched your search
@@ -44,6 +44,29 @@ namespace SuperDesign.Tools
|
||||
AutoSize = true,
|
||||
Text = "版本号:" + item.GetJsonValue("VerStr", "")
|
||||
};
|
||||
var LogTime = item.GetJsonValue("LogTime", "");
|
||||
var now_jarr = LogTime.Length==0? new JArray(): JArray.Parse(LogTime);
|
||||
Dictionary<string, long> dict = new Dictionary<string, long>();
|
||||
for (int j = 0; j < now_jarr.Count; j++)
|
||||
{
|
||||
var item_jarr = now_jarr[j];
|
||||
dict[item_jarr.GetJsonValue("text", "")] = item_jarr.GetJsonValue("time", 0L);
|
||||
}
|
||||
var LogText_lines = item.GetJsonValue("LogText", "").Replace("\r", "\n").Replace("\n\n", "\n").Split('\n');
|
||||
var LogText = "";
|
||||
for (int l = 0; l < LogText_lines.Length; l++)
|
||||
{
|
||||
if (LogText_lines[l].Length == 0) { continue; }
|
||||
if (LogText.Length > 0) { LogText += "\n"; }
|
||||
if(dict.ContainsKey(LogText_lines[l]))
|
||||
{
|
||||
LogText += LogText_lines[l] + "=>" + dict[LogText_lines[l]].ToDateTime().ToString("yyyy-MM-dd HH:mm");
|
||||
}
|
||||
else
|
||||
{
|
||||
LogText += LogText_lines[l];
|
||||
}
|
||||
}
|
||||
RichTextBox2 rich = new RichTextBox2
|
||||
{
|
||||
Parent = tab,
|
||||
@@ -56,7 +79,7 @@ namespace SuperDesign.Tools
|
||||
Location = new Point(label.Left, label.Top + label.Height + 4),
|
||||
Size = new Size(tab.ClientSize.Width, tab.ClientSize.Height - (label.Top + label.Height + 4)),
|
||||
Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom,
|
||||
Text= item.GetJsonValue("LogText", "")
|
||||
Text= LogText
|
||||
};
|
||||
tabControl1.TabPages.Add(tab);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user