gxc
2019-10-14 76bee0cb59c06d4616d70aace2cff4223c76a469
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;
        }
    }
}