old mode 100755
new mode 100644
| | |
| | | /// </summary> |
| | | public Button ImageBG; |
| | | /// <summary> |
| | | /// ClickBtn |
| | | /// </summary> |
| | | public Button ClickBtn; |
| | | /// <summary> |
| | | /// v_Selected |
| | | /// </summary> |
| | | private bool v_Selected; |
| | |
| | | Gravity = Gravity.CenterHorizontal, |
| | | UnSelectedImagePath = imagePath, |
| | | SelectedImagePath = selectedImagePath, |
| | | Tag = Tag |
| | | Tag = Tag, |
| | | IsSelected=true |
| | | }; |
| | | AddChidren(ImageBtn); |
| | | |
| | | NameBtn = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(200), |
| | | Width = Application.GetRealWidth(160), |
| | | Width = Application.GetRealWidth(170), |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | SelectedTextColor = ZigbeeColor.Current.GXCTextSelectedColor, |
| | | Tag = Tag |
| | | Tag = Tag, |
| | | TextSize=11 |
| | | }; |
| | | AddChidren(NameBtn); |
| | | |
| | | ClickBtn = new Button |
| | | { |
| | | Tag = Tag |
| | | }; |
| | | AddChidren(ClickBtn); |
| | | } |
| | | |
| | | |
| | |
| | | public void SetStatu(bool statu) |
| | | { |
| | | ImageBG.IsSelected = NameBtn.IsSelected = statu; |
| | | NameBtn.IsBold = statu; |
| | | } |
| | | |
| | | } |
| | | } |