| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | | Width = Application.GetRealWidth(400), |
| | | Width = Application.GetRealWidth(600), |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.addaction, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | TextID = MyInternationalizationString.device, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize=15, |
| | | }; |
| | | devicerow.AddChidren(btndevice); |
| | | |
| | |
| | | |
| | | EventHandler<MouseEventArgs> devicestateclick = (sender, e) => |
| | | { |
| | | Common.Logic.LogicDviceList.Clear(); |
| | | if (Common.Logic.LogicDviceList.Count == 0) |
| | | { |
| | | Common.Logic.LogicDviceList.AddRange(LocalDevice.Current.listAllDevice.ToArray()); |
| | | } |
| | | var logicDevicePage = new LogicDevicePage(); |
| | | UserView.HomePage.Instance.AddChidren(logicDevicePage); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | |
| | | TextID = MyInternationalizationString.scene, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | sceneRowLayout.AddChidren (scene); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = MyInternationalizationString.securitymode, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | securityrow.AddChidren(btnsecurity); |
| | | |
| | |
| | | Width = Application.GetRealWidth(400), |
| | | TextID = MyInternationalizationString.Alreadyautomated, |
| | | //Text = "已有自动化", |
| | | TextSize = 16, |
| | | TextSize = 15, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(40), |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = MyInternationalizationString.delayed, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | delayedRowLayout.AddChidren(delayed); |
| | | |