| | |
| | | |
| | | TimeButton = new Button() |
| | | { |
| | | X = Application.GetMinRealAverage(40), |
| | | Y = Application.GetMinRealAverage(17), |
| | | Width = Application.GetMinRealAverage(320), |
| | | X = Application.GetMinRealAverage(30), |
| | | Y = Application.GetMinRealAverage(20), |
| | | Width = Application.GetMinRealAverage(63), |
| | | Height = Application.GetMinRealAverage(63), |
| | | TextColor = ZigbeeColor.Current.GXCTextSelectedColor3, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | |
| | | |
| | | CollectButton = new Button |
| | | { |
| | | X = Application.GetMinRealAverage(366), |
| | | Y = Application.GetMinRealAverage(14), |
| | | X = Application.GetMinRealAverage(350), |
| | | Y = Application.GetMinRealAverage(1), |
| | | Width = Application.GetMinRealAverage(107), |
| | | Height = Application.GetMinRealAverage(107), |
| | | UnSelectedImagePath = "Item/Collection1.png", |
| | |
| | | TextColor = ZigbeeColor.Current.GXCTextWhiteColor, |
| | | SelectedTextColor = ZigbeeColor.Current.GXCTextSelectedColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | IsBold = true |
| | | }; |
| | | AddChidren(SceneNameButton); |
| | | } |
| | |
| | | CollectButton.MouseUpEventHandler += CollectionEvent; |
| | | SceneIcon.MouseUpEventHandler += SceneUpHandler; |
| | | SceneNameButton.MouseUpEventHandler += SceneUpHandler; |
| | | sceneBG.MouseUpEventHandler += SceneUpHandler; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="name"></param> |
| | | public void SetTimeText(string name) |
| | | { |
| | | TimeButton.Width = Application.GetMinRealAverage(320); |
| | | TimeButton.Width = Application.GetMinRealAverage(280); |
| | | TimeButton.Height = Application.GetMinRealAverage(63); |
| | | TimeButton.UnSelectedImagePath = string.Empty; |
| | | TimeButton.Text = name; |
| | | TimeButton.TextSize = 14; |
| | | TimeButton.IsBold = true; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | var timeSelect = new SelectTime(); |
| | | CommonPage.Instance.AddChidren(timeSelect); |
| | | timeSelect.TempTime = scene.DelayTime; |
| | | timeSelect.TempTime = scene.SceneDelayTime; |
| | | timeSelect.Init(); |
| | | timeSelect.TimeAction = (t) => |
| | | { |