黄学彪
2019-11-25 5727cf0b9b54da0a191dd1e23cb5abf21320fbff
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
96
97
using System;
using System.Collections.Generic;
using System.Text;
 
namespace Shared.Phone.UserCenter.OtherParty
{
    /// <summary>
    /// 第三方账号的菜单界面
    /// </summary>
    public class OtherPartyAccountMenuForm : EditorCommonForm
    {
        #region ■ 变量声明___________________________
 
        #endregion
 
        #region ■ 初始化_____________________________
 
        /// <summary>
        /// 画面显示(底层会固定调用此方法,借以完成画面创建)
        /// </summary>
        public void ShowForm()
        {
            //设置头部信息
            base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uOtherPartyAccount));
 
            //初始化中部信息
            this.InitMiddleFrame();
        }
 
        /// <summary>
        /// 初始化中部信息
        /// </summary>
        private void InitMiddleFrame()
        {
            //清空bodyFrame
            this.ClearBodyFrame();
 
            var frameBack = new FrameListControl(12);
            frameBack.Height = Application.GetRealHeight(317);
            frameBack.BackgroundColor = UserCenterColor.Current.White;
            bodyFrameLayout.AddChidren(frameBack);
 
            var rowChat = new FrameRowControl(frameBack.rowSpace / 2);
            rowChat.Y = Application.GetRealHeight(11);
            frameBack.AddChidren(rowChat);
            //微信
            var btnChat = rowChat.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uWebChat), 400, 60);
            btnChat.Y = Application.GetRealHeight(12) + rowChat.chidrenYaxis;
            btnChat.TextSize = 15;
            rowChat.AddChidren(btnChat, ChidrenBindMode.BindEventOnly);
            //未授权
            var btnTip1 = rowChat.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uNotAuthentication), 400, 49);
            btnTip1.Y = Application.GetRealHeight(72) + rowChat.chidrenYaxis;
            btnTip1.TextSize = 12;
            btnTip1.TextColor = UserCenterColor.Current.TextGrayColor1;
            rowChat.AddChidren(btnTip1, ChidrenBindMode.BindEventOnly);
            //向右图标
            rowChat.AddRightArrow();
            //底线
            rowChat.AddBottomLine();
            //请绑定
            rowChat.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uPleaseBind), 400);
            rowChat.ButtonClickEvent += (sender, e) =>
            {
 
            };
 
            var rowQQ = new FrameRowControl(frameBack.rowSpace / 2);
            frameBack.AddChidren(rowQQ);
            //微信
            var btnQQ = rowQQ.AddLeftCaption("QQ", 400, 60);
            btnQQ.Y = Application.GetRealHeight(12) + rowQQ.chidrenYaxis;
            btnQQ.TextSize = 15;
            rowQQ.AddChidren(btnQQ, ChidrenBindMode.BindEventOnly);
            //未授权
            var btnTip2 = rowQQ.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uNotAuthentication), 400, 49);
            btnTip2.Y = Application.GetRealHeight(72) + rowQQ.chidrenYaxis;
            btnTip2.TextSize = 12;
            btnTip2.TextColor = UserCenterColor.Current.TextGrayColor1;
            rowQQ.AddChidren(btnTip2, ChidrenBindMode.BindEventOnly);
            //向右图标
            rowQQ.AddRightArrow();
            //请绑定
            rowQQ.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uPleaseBind), 400);
            rowQQ.ButtonClickEvent += (sender, e) =>
            {
 
            };
        }
 
        #endregion
 
        #region ■ 一般方法___________________________
 
        #endregion
    }
}