wjc
2023-03-28 0446b122504b83aef39087e91a960d53920bec05
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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);
 
 
        }
    }
}