| | |
| | | /// <summary> |
| | | /// NextBtn |
| | | /// </summary> |
| | | public Button NextBtn; |
| | | public Button SelectBtn; |
| | | /// <summary> |
| | | /// ClickButton |
| | | /// </summary> |
| | | public Button ClickButton; |
| | | /// <summary> |
| | | /// DeviceInfoWithZoneRow |
| | | /// </summary> |
| | |
| | | }; |
| | | AddChidren(ZoneButton); |
| | | |
| | | NextBtn = new Button |
| | | SelectBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(910), |
| | | Width = Application.GetMinRealAverage(100), |
| | | Height = Application.GetMinRealAverage(100), |
| | | Gravity = Gravity.CenterVertical, |
| | | SelectedImagePath = "Item/Next.png", |
| | | UnSelectedImagePath = "Item/NextSelected.png" |
| | | UnSelectedImagePath = "Scene/Selected.png", |
| | | Visible = false |
| | | }; |
| | | AddChidren(NextBtn); |
| | | AddChidren(SelectBtn); |
| | | |
| | | var line = new Button() |
| | | { |
| | |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2, |
| | | }; |
| | | AddChidren(line); |
| | | ClickButton = new Button |
| | | { |
| | | |
| | | }; |
| | | AddChidren(ClickButton); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="title"></param> |
| | | public void SetName(string title) |
| | | { |
| | | ZoneButton.Text = title; |
| | | NameButton.Text = title; |
| | | } |
| | | |
| | | |
| | |
| | | /// <param name="title"></param> |
| | | public void SetZone(string title) |
| | | { |
| | | NameButton.Text = title; |
| | | ZoneButton.Text = title; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | IconButton.UnSelectedImagePath = imagePath; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// SetStatu |
| | | /// </summary> |
| | | /// <param name="statu"></param> |
| | | public void SetStatu(bool statu) |
| | | { |
| | | SelectBtn.Visible = statu; |
| | | } |
| | | |
| | | } |
| | | } |