using System;
|
using HDL_ON.UI.CSS;
|
using HDL_ON.UI.Music;
|
using Shared;
|
|
namespace HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock
|
{
|
public class StackTraceLog
|
{
|
/// <summary>
|
/// 堆叠跟踪日志
|
/// </summary>
|
public string msg;
|
|
public StackTraceLog(string msg)
|
{
|
this.msg = msg;
|
}
|
public void Show()
|
{
|
|
Dialog dialog = new Dialog()
|
{
|
BackgroundColor = CSS_Color.textWhiteColor,
|
};
|
dialog.Show();
|
TopView topView = new TopView();
|
topView.topNameBtn.Text="错误日志信息";
|
dialog.AddChidren(topView.TopFLayoutView());
|
topView.clickBackBtn.MouseUpEventHandler += (sen, e) =>
|
{
|
dialog.Close();
|
};
|
|
var middleFl = new FrameLayout
|
{
|
Y = topView.fLayout.Bottom,
|
Height = Application.GetRealHeight(H_W.H - H_W.T_Height),
|
};
|
dialog.AddChidren(middleFl);
|
|
Button btnLogText = new Button
|
{
|
//TextSize = TextSize.Text14,
|
TextColor = MusicColor.Text18Color,
|
Width = Application.GetRealWidth(H_W.W - 16 - 16),
|
Height = middleFl.Height,
|
X = Application.GetRealWidth(16),
|
Text = this.msg,
|
TextAlignment = TextAlignment.TopLeft,
|
IsMoreLines = true,
|
};
|
middleFl.AddChidren(btnLogText);
|
|
|
}
|
}
|
}
|