| | |
| | | Width = Application.GetRealWidth(400), |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.selection, |
| | | TextID = MyInternationalizationString.linkageevent, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | Common.Logic.CurrentLogic = new Common.Logic(); |
| | | 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); |
| | |
| | | { |
| | | Width = Application.GetRealWidth(1080), |
| | | Height = Application.GetRealHeight(190), |
| | | LineColor = ZigbeeColor.Current.LogicBackgroundColor, |
| | | LineColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, |
| | | BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor, |
| | | |
| | | }; |
| | |
| | | //逻辑关 |
| | | logic.IsEnable = 0; |
| | | } |
| | | Logic.Send.LogicControlSwitch(logic); |
| | | Send.LogicControlSwitch(logic); |
| | | |
| | | }; |
| | | if (logic.IsEnable == 1) |
| | | { |
| | | logicswitchBtn.IsSelected = true; |
| | | } |
| | | else if (logic.IsEnable == 0) |
| | | { |
| | | logicswitchBtn.IsSelected = false; |
| | | } |
| | | ///编辑 |
| | | var edit = new Button |
| | | { |
| | |
| | | { |
| | | if (e1) |
| | | { |
| | | Common.Logic.LogicList.Remove(logic); |
| | | Common.Logic.LockLogicList.Remove(logic); |
| | | Automationview(); |
| | | Send.DelLogic(logic.LogicId); |
| | | } |