mirror of
https://github.com/eggplantlwj/VisionEdit.git
synced 2026-04-16 09:26:34 +08:00
1、优化程序架构,减少项目之间的引用,将所有工具类归并到一起,对工具和主函数之间进行解耦
2、增加Project概念,并对项目进行保存和载入。 3、优化LOG显示,修复一些其他的bug
This commit is contained in:
44
ToolLib.Log/LogForm/DetailMesForm.cs
Normal file
44
ToolLib.Log/LogForm/DetailMesForm.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user