HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2019-10-10 2ed75b8b337048e5d75e6d9ec8307633134f02fd
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
using System;
using Shared.Common;
 
namespace Shared.Phone.Device.CommonForm
{
    public class Line : SelectedStatuButton
    {
        /// <summary>
        /// Line
        /// </summary>
        /// <param name="y"></param>
        /// <param name="width"></param>
        /// <param name="height"></param>
        public Line(int y, int width, int height)
        {
            Y = y-2;
            Width = width;
            Height = height;
            Radius = (uint)(height / 2);
            SelectedBackgroundColor = ZigbeeColor.Current.GXCButtonSelectedColor;
            //BackgroundColor = ZigbeeColor.Current.GXCButtonSelectedColor;
            Gravity = Gravity.CenterHorizontal;
        }
 
        /// <summary>
        /// SetStatu
        /// </summary>
        /// <param name="statu"></param>
        public void SetStatu(bool statu)
        {
            IsSelected = statu;
        }
    }
}