50 lines
1.6 KiB
C#
50 lines
1.6 KiB
C#
|
using Api.Framework.Tools;
|
|||
|
using System;
|
|||
|
using System.Drawing;
|
|||
|
using System.IO;
|
|||
|
using System.Text.RegularExpressions;
|
|||
|
using UI.Framework.Forms;
|
|||
|
using UI.Framework.Tools;
|
|||
|
|
|||
|
namespace FLSystem.Forms
|
|||
|
{
|
|||
|
public partial class update_log_form : BaseForm
|
|||
|
{
|
|||
|
public update_log_form()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
}
|
|||
|
|
|||
|
private void update_log_form_Load(object sender, EventArgs e)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
//var path = Util.MapFile("Update.log", @"Cache");
|
|||
|
//if (File.Exists(path))
|
|||
|
//{
|
|||
|
// StreamReader sr = new StreamReader(path);
|
|||
|
// string content;
|
|||
|
// while ((content = sr.ReadLine()) != null)
|
|||
|
// {
|
|||
|
// if (Regex.IsMatch(content.Trim(), @"^(?<版本>\d{4}\.\d{1,2}\.\d{1,2}\.\d{1,2})$"))
|
|||
|
// richTextBox1.AppendTextColorful(content.Trim(), ColorTranslator.FromHtml("#0000FF"));
|
|||
|
// else
|
|||
|
// richTextBox1.AppendTextColorful(content.Trim(), ColorTranslator.FromHtml("#363636"));
|
|||
|
// }
|
|||
|
|
|||
|
// this.richTextBox1.SelectionStart =0;
|
|||
|
// this.richTextBox1.ScrollToCaret();
|
|||
|
//}
|
|||
|
//else richTextBox1.AppendTextColorful("暂无更新内容", Color.Red);
|
|||
|
|
|||
|
richTextBox1.AppendTextColorful("暂不支持查看更新内容", Color.Red);
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
catch (Exception ex)
|
|||
|
{
|
|||
|
if (!this.IsDisposed) ShowError(ex);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|