| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | Common.Logic.CurrentLogic.IsEnable = 1;//默认为开 |
| | | Common.Logic.CurrentLogic.LogicType = 1; |
| | | Common.Logic.CurrentLogic.Relationship = 1; |
| | | //Config.Instance.Guid用来识别账号身份; |
| | | var accounts = new System.Collections.Generic.Dictionary<string, string>(); |
| | | accounts.Add("Type","1"); |
| | | accounts.Add("Account", Config.Instance.Guid); |
| | | Common.Logic.CurrentLogic.Accounts.Add(accounts); |
| | | Common.Logic.CurrentLogic.LogicName = Language.StringByID(MyInternationalizationString.automation1); |
| | | var lockLogicCommunalPage = new LockLogicCommunalPage(); |
| | | UserView.HomePage.Instance.AddChidren(lockLogicCommunalPage); |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Gravity = Gravity.CenterVertical, |
| | | TextSize = 15, |
| | | }; |
| | | logicRowlayout.AddChidren(logicnameBtn); |
| | | |