wxr
2021-07-01 471c4f70d808b6993cab066dfbe807954418ea92
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
using System;
using Shared;
using HDL_ON.UI.CSS;
using HDL_ON.Stan;
 
namespace HDL_ON.UI
{
    /// <summary>
    /// 管理员权限迁移确认提醒界面
    /// </summary>
    public class AdminMigrationConfirmPage : EditorCommonForm
    {
        #region ■ 变量声明___________________________
 
        #endregion
 
        #region ■ 初始化_____________________________
 
        /// <summary>
        /// 画面显示(底层会固定调用此方法,借以完成画面创建)
        /// </summary>
        public void ShowForm()
        {
            //管理员权限转移
            base.SetTitleText(Language.StringByID(StringId.AdminAuthorityTransfer));
 
            //初始化中部信息
            this.InitMiddleFrame();
        }
 
        /// <summary>
        /// 初始化中部信息
        /// </summary>
        private void InitMiddleFrame()
        {
            //清空bodyFrame
            this.ClearBodyFrame();
 
            //账号自己的头像
            var btnHeadImage = new ImageView();
            btnHeadImage.X = Application.GetRealWidth(48);
            btnHeadImage.Y = Application.GetRealHeight(32);
            btnHeadImage.Width = Application.GetRealWidth(84);
            btnHeadImage.Height = Application.GetRealWidth(84);
            btnHeadImage.Radius = (uint)Application.GetRealWidth(42);
            btnHeadImage.ImagePath = UserInfo.Current.headImagePagePath;
            bodyFrameLayout.AddChidren(btnHeadImage);
 
            //箭头
            var btnArrow = new PicViewControl(84, 32);
            btnArrow.X = btnHeadImage.Right + Application.GetRealWidth(12);
            btnArrow.Y = Application.GetRealHeight(58);
            btnArrow.UnSelectedImagePath = "PersonalCenter/Transfer.png";
            bodyFrameLayout.AddChidren(btnArrow);
 
            //一个默认头像
            var btnHead2 = new IconViewControl(102);
            btnHead2.X = btnArrow.Right + Application.GetRealWidth(3);
            btnHead2.Y = Application.GetRealHeight(26);
            btnHead2.UnSelectedImagePath = "PersonalCenter/Head.png";
            bodyFrameLayout.AddChidren(btnHead2);
 
            //您将转移您的管理员权限给其他成员
            this.AddListMsgControls(bodyFrameLayout, Language.StringByID(StringId.AdminAuthorityTransferMag1), CSS_FontSize.SubheadingFontSize,
                CSS_Color.FirstLevelTitleColor, Application.GetRealHeight(23), btnHead2.Bottom + Application.GetRealHeight(12));
 
            //请注意:
            var btnAttention = new NormalViewControl(200, 18, true);
            btnAttention.X = HdlControlResourse.XXLeft;
            btnAttention.Y = btnHeadImage.Bottom + Application.GetRealHeight(84);
            btnAttention.TextID = StringId.Attention;
            btnAttention.TextSize = CSS_FontSize.PromptFontSize_FirstLevel;
            btnAttention.TextColor = CSS_Color.FirstLevelTitleColor;
            bodyFrameLayout.AddChidren(btnAttention);
 
            //1.该住宅您的管理员数据(云端数据)将全部转移给新的管理员
            //2.您的数据将会与目标成员互换,您的权限将变更为目标成员的权限
            var listContr = this.AddListMsgControls(bodyFrameLayout, Language.StringByID(StringId.AdminAuthorityTransferMag2), CSS_FontSize.PromptFontSize_FirstLevel,
                CSS_Color.TextualColor, Application.GetRealHeight(18), btnAttention.Bottom + Application.GetRealHeight(8), TextAlignment.CenterLeft);
 
            //确认转移
            var btnConfirm = new BottomClickButton(220);
            btnConfirm.Y = listContr[listContr.Count - 1].Bottom + Application.GetRealHeight(75);
            btnConfirm.TextID = StringId.ConfirmTransfer2;
            bodyFrameLayout.AddChidren(btnConfirm);
            btnConfirm.ButtonClickEvent += (sender, e) =>
            {
                var form = new AdminMigrationMemberListPage();
                form.AddForm();
            };
        }
 
        #endregion
    }
}