2024-12-20 06:14:48 +00:00
|
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
|
using ryCommon;
|
|
|
|
|
using ryControls.Controls;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
using System.Xml.Linq;
|
|
|
|
|
|
|
|
|
|
namespace SuperDesign.Tools
|
|
|
|
|
{
|
|
|
|
|
public partial class FrmUpdateLog : Form
|
|
|
|
|
{
|
|
|
|
|
public FrmUpdateLog()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
public void ShowLog(string LogJson)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
JArray jarr = JArray.Parse(LogJson);
|
|
|
|
|
for (int i = 0; i < jarr.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
var item = jarr[i];
|
|
|
|
|
var ProjectName = item.GetJsonValue("ProjectChsName", "");
|
|
|
|
|
if(ProjectName.Length==0)
|
|
|
|
|
{
|
|
|
|
|
ProjectName = item.GetJsonValue("ProjectName", "");
|
|
|
|
|
}
|
|
|
|
|
TabPage tab = new TabPage()
|
|
|
|
|
{
|
|
|
|
|
Text = ProjectName
|
|
|
|
|
};
|
|
|
|
|
Label label = new Label
|
|
|
|
|
{
|
|
|
|
|
Parent = tab,
|
|
|
|
|
Location = new Point(1, 4),
|
|
|
|
|
AutoSize = true,
|
|
|
|
|
Text = "版本号:" + item.GetJsonValue("VerStr", "")
|
|
|
|
|
};
|
|
|
|
|
RichTextBox2 rich = new RichTextBox2
|
|
|
|
|
{
|
|
|
|
|
Parent = tab,
|
|
|
|
|
Dock = DockStyle.Fill,
|
|
|
|
|
Font = new Font("微软雅黑", 11),
|
|
|
|
|
ReadOnly=true,
|
|
|
|
|
BackColor=Color.White,
|
2025-01-08 08:55:00 +00:00
|
|
|
|
ScrollBars= RichTextBoxScrollBars.Both,
|
|
|
|
|
WordWrap=false,
|
2024-12-20 07:55:25 +00:00
|
|
|
|
Location = new Point(label.Left, label.Top + label.Height + 4),
|
2024-12-20 06:14:48 +00:00
|
|
|
|
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", "")
|
|
|
|
|
};
|
|
|
|
|
tabControl1.TabPages.Add(tab);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch { }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|