Files
VisionEdit/ToolLib.Log/LogForm/DetailMesForm.cs
liu.wenjie 1451352125 1、优化程序架构,减少项目之间的引用,将所有工具类归并到一起,对工具和主函数之间进行解耦
2、增加Project概念,并对项目进行保存和载入。
3、优化LOG显示,修复一些其他的bug
2021-03-17 16:05:33 +08:00

45 lines
1.1 KiB
C#

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 LogForm
{
public partial class DetailMesForm : Form
{
private string detailMsg = string.Empty;
public DetailMesForm(string detailMsg)
{
InitializeComponent();
this.detailMsg = detailMsg;
}
private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
}
private void DetailMesForm_Load(object sender, EventArgs e)
{
try
{
string time = detailMsg.Split('>')[0];
string level = detailMsg.Split(',')[0].Split('>')[1];
lb_Time.Text = time;
lb_Level.Text = level;
Rtb_DetailMes.Text = detailMsg;
}
catch (Exception)
{
Rtb_DetailMes.Text = detailMsg;
}
}
}
}