黄学彪
2020-09-22 ade5917841b0fdcb1df7353ef7c56b1a1bdc9282
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
using System;
using System.Collections.Generic;
using System.Text;
 
namespace Shared.Phone.UserCenter.Guide
{
    /// <summary>
    /// 引导界面2
    /// </summary>
    public class GuideForm2 : GuideCommonForm
    {
        #region ■ 初始化_____________________________
 
        /// <summary>
        /// 显示界面
        /// </summary>
        public override void ShowFrom()
        {
            base.ShowFrom();
 
            //蒙上阴影
            var frameBack = new FrameLayout();
            frameBack.BackgroundColor = 0xad000000;
            this.AddChidren(frameBack);
 
            //一个白色的框框
            this.contrSwitch.BringToFront();
            contrSwitch.Height += Application.GetRealWidth(23 * 2);
            contrSwitch.Width += Application.GetRealWidth(23 * 2);
            contrSwitch.Gravity = Gravity.CenterHorizontal;
            contrSwitch.BorderWidth = (uint)Application.GetRealWidth(23);
            contrSwitch.BorderColor = UserCenterColor.Current.White;
            contrSwitch.Radius = (uint)contrSwitch.Height / 2;
            this.btnScene.Gravity = Gravity.CenterVertical;
            this.btnFunction.Gravity = Gravity.CenterVertical;
 
            //虚线箭头
            var btnArrows = new PicViewControl(51, 171);
            btnArrows.UnSelectedImagePath = "Guide/Arrows1.png";
            btnArrows.X = Application.GetRealWidth(625);
            btnArrows.Y = contrSwitch.Bottom + Application.GetRealHeight(35);
            frameBack.AddChidren(btnArrows);
 
            //房间的内容在此处显示
            var btnMsg = new NormalViewControl(frameBack.Width, Application.GetRealHeight(75), false);
            btnMsg.TextAlignment = TextAlignment.Center;
            btnMsg.TextColor = UserCenterColor.Current.White;
            btnMsg.TextSize = 18;
            btnMsg.TextID = R.MyInternationalizationString.uTheContentsOfTheRoomAreShownHere;
            btnMsg.Y = btnArrows.Bottom;
            frameBack.AddChidren(btnMsg);
 
            //我知道了
            var btnKnwon = this.AddIKnwonButton();
            btnKnwon.ButtonClickEvent += (sender, e) =>
            {
                Phone.MainPage.ListRoomViewFrom.Instance.CanClick = true;
                this.RemoveFromParent();
            };
        }
 
        #endregion
    }
}