45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
|
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;
|
|||
|
|
|||
|
namespace SuperDesign.Tools.UpLog
|
|||
|
{
|
|||
|
public partial class FrmPublishLogs : Form
|
|||
|
{
|
|||
|
public FrmPublishLogs()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
}
|
|||
|
private string MdLog { get; set; } = "";
|
|||
|
private string HtmlLog { get; set; } = "";
|
|||
|
public void ShowLog(string LogJson)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
JArray jarr = JArray.Parse(LogJson);
|
|||
|
MdLog = SuperDesign.Manager.APIManager.GetMdLogText(jarr, DateTime.Now);
|
|||
|
HtmlLog = SuperDesign.Manager.APIManager.GetHtmlLogText(jarr, DateTime.Now);
|
|||
|
}
|
|||
|
catch { }
|
|||
|
}
|
|||
|
private void BtnCopyMD_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
RyFiles.CopyToClip(MdLog);
|
|||
|
}
|
|||
|
|
|||
|
private void BtnCopyHtml_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
RyFiles.CopyToClip(HtmlLog);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|