| | |
| | | <Properties StartupConfiguration="{28EDE1FF-20EF-476B-8AF8-24A3EEB69F45}|Default"> |
| | | <MonoDevelop.Ide.ItemProperties.GateWay.Droid PreferredExecutionTarget="Android.5c86e4357d63" /> |
| | | <MonoDevelop.Ide.ItemProperties.GateWay.Ios automaticSigning="False" PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneSimulatorTarget.28D65668-1785-4D5D-8282-1EAD504036BE" /> |
| | | <Properties StartupConfiguration="{7D463846-A275-4A2E-930F-B5EA7200CEAA}|Default"> |
| | | <MonoDevelop.Ide.ItemProperties.GateWay.Droid PreferredExecutionTarget="Android.SelectDevice" /> |
| | | <MonoDevelop.Ide.ItemProperties.GateWay.Ios automaticSigning="False" PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneDeviceTarget.913cb77b0eef11c9119c61a02bc00fec01bf67d6" /> |
| | | <MonoDevelop.Ide.ItemProperties.ShardLib PreferredExecutionTarget="Android.M7BBB18B19152766" /> |
| | | <MonoDevelop.Ide.Workbench ActiveDocument="Shared/Phone/Device/Logic/LogicCommunalPage.cs"> |
| | | <MonoDevelop.Ide.Workbench ActiveDocument="Shared/Phone/Device/Logic/DoorLockLogic/LockLogicCommunalPage.cs"> |
| | | <Files> |
| | | <File FileName="Shared/Phone/Device/Category/Category.cs" Line="1991" Column="50" /> |
| | | <File FileName="Shared/Phone/Device/Logic/Send.cs" /> |
| | | <File FileName="Shared/Phone/Device/Logic/DeviceStateCondition.cs" /> |
| | | <File FileName="Shared/Phone/Device/Logic/MemberList.cs" /> |
| | | <File FileName="Shared/Phone/Device/Logic/TemplateDeviceCondition.cs" /> |
| | | <File FileName="Shared/Phone/Device/Logic/DoorLockLogic/AddCondition.cs" /> |
| | | <File FileName="Shared/Common/ZigbeeColor.cs" /> |
| | | <File FileName="Shared/Phone/Device/Logic/LogicCommunalPage.cs" Line="1" Column="1" /> |
| | | <File FileName="Shared/Phone/Device/Logic/DoorLockLogic/LockLogicCommunalPage.cs" Line="490" Column="43" /> |
| | | </Files> |
| | | <Pads> |
| | | <Pad Id="ProjectPad"> |
| | | <State name="__root__"> |
| | | <Node name="GateWay" expanded="True"> |
| | | <Node name="GateWay.Ios" expanded="True" /> |
| | | <Node name="Shared" expanded="True"> |
| | | <Node name="Phone" expanded="True"> |
| | | <Node name="Device" expanded="True"> |
| | | <Node name="Logic" expanded="True"> |
| | | <Node name="DoorLockLogic" expanded="True"> |
| | | <Node name="LockLogicCommunalPage.cs" selected="True" /> |
| | | </Node> |
| | | </Node> |
| | | </Node> |
| | | </Node> |
| | | </Node> |
| | | </Node> |
| | | </State> |
| | | </Pad> |
| | | </Pads> |
| | | </MonoDevelop.Ide.Workbench> |
| | | <MonoDevelop.Ide.DebuggingService.PinnedWatches /> |
| | | <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhoneSimulator" /> |
| | | <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhone" /> |
| | | <MonoDevelop.Ide.DebuggingService.Breakpoints> |
| | | <BreakpointStore /> |
| | | </MonoDevelop.Ide.DebuggingService.Breakpoints> |
| | |
| | | TextID = MyInternationalizationString.logictemplate, |
| | | Gravity = Gravity.CenterVertical, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSelectedColor, |
| | | TextSize=15, |
| | | }; |
| | | bjFrameLayout.AddChidren(recommendtextBtn); |
| | | |
| | |
| | | Y = Application.GetRealHeight(246 - 23 - 80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 14, |
| | | }; |
| | | frameLayout.AddChidren(logicnameBtn); |
| | | |
| | |
| | | Y = Application.GetRealHeight(30), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | logicRowlayout.AddChidren(logicnameBtn); |
| | | |
| | |
| | | this.AddChidren(topRowLayout); |
| | | |
| | | var titleName = new Button { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.timecondition), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize=15, |
| | | }; |
| | | timerow.AddChidren(btntime); |
| | | |
| | |
| | | TextID = MyInternationalizationString.device, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | devicerow.AddChidren(btndevice); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = MyInternationalizationString.security, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | securityrow.AddChidren(btnsecurity); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = MyInternationalizationString.location, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | locationrow.AddChidren(btnlocation); |
| | | |
| | |
| | | X = Application.GetRealWidth(60), |
| | | TextID = MyInternationalizationString.automation, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | existencerowlayout.AddChidren(btnexistence); |
| | | |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(100), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.logicathomegarrison, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | athomedefenceRowLayout.AddChidren(btnathomedefence); |
| | | |
| | |
| | | TextID = MyInternationalizationString.logicremovehomegarrison, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | leavehomedefenceRowLayout.AddChidren(leavehomebtndefence); |
| | | var leavehomedefenceSelected = new SelectedButton(); |
| | |
| | | TextID = MyInternationalizationString.withdrawal, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | withdrawalRowLayout.AddChidren(btnwithdrawal); |
| | | var withdrawalSelected = new SelectedButton(); |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | typeRow.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(100), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | typeRow.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.athome, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | |
| | | |
| | | }; |
| | |
| | | TextID = MyInternationalizationString.leavehome, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | leavehomeRowLayout.AddChidren(btnleavehome); |
| | | var leavehomeSelected = new SelectedButton(); |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(100), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | //Text="立即执行", |
| | | TextSize = 14, |
| | | }; |
| | | timerow.AddChidren(Btntimepoint); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | //Text = "时间范围", |
| | | TextSize = 14, |
| | | }; |
| | | time1row.AddChidren(Btntime); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(160), |
| | |
| | | Y = Application.GetRealHeight(92), |
| | | //TextID = MyInternationalizationString.customroom, |
| | | Text = Config.Instance.Home.GetCurrentFloorName, |
| | | TextSize = 14, |
| | | }; |
| | | topRowLayout.AddChidren(foolrname); |
| | | var dropdown = new Button |
| | |
| | | }; |
| | | this.AddChidren(saveframeLayout); |
| | | |
| | | var btnsave = new Button |
| | | var btnsave = new Button |
| | | { |
| | | X = Application.GetRealWidth(85), |
| | | Height = Application.GetRealHeight(130), |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | saveframeLayout.AddChidren(btnsave); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | X = Application.GetRealWidth(80), |
| | | TextID = MyInternationalizationString.selecfoolr, |
| | | TextSize = 14, |
| | | }; |
| | | foolrbjicon.AddChidren(btnfoolrtext); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | Tag = foolr.Key, |
| | | X = btnfoolricon.Right + Application.GetRealWidth(12), |
| | | TextSize = 14, |
| | | }; |
| | | foolrRowLayout.AddChidren(btnfoolrname); |
| | | if (foolrname.Text == foolr.Value) |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | SelectedTextColor = ZigbeeColor.Current.LogicAddColor, |
| | | TextSize = 14, |
| | | }; |
| | | sceneRow.AddChidren(scenename); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | Text = Common.Logic.CurrentLogic.LogicCustomPushText, |
| | | TextSize = 14, |
| | | }; |
| | | middle.AddChidren(textBox); |
| | | |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.confrim, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | }; |
| | | TextSize = 16, |
| | | }; |
| | | middle.AddChidren(btnsave); |
| | | |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | middle.AddChidren(btnsave); |
| | | |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.executeonce), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | onceRow.AddChidren(onceTextBtn); |
| | | |
| | |
| | | TextID = MyInternationalizationString.everyday, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | everydayRow.AddChidren(everydayTxetBtn); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = MyInternationalizationString.weekly, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | weekRow.AddChidren(weekTextBtn); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = MyInternationalizationString.monthly, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | monthlyRow.AddChidren(monthlyTextBtn); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = MyInternationalizationString.everyyear, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | yearRow.AddChidren(yearTextBtn); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | Y = blancolor.Bottom + Application.GetRealHeight(50), |
| | | TextID =MyInternationalizationString.createtimetext, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | |
| | | }; |
| | | middle.AddChidren(titleText); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(160), |
| | |
| | | Y = Application.GetRealHeight(92), |
| | | //TextID = MyInternationalizationString.customroom, |
| | | Text = Config.Instance.Home.GetCurrentFloorName, |
| | | TextSize = 14, |
| | | }; |
| | | topRowLayout.AddChidren(foolrname); |
| | | var dropdown = new Button |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | X = Application.GetRealWidth(80), |
| | | TextID = MyInternationalizationString.selecfoolr, |
| | | TextSize = 14, |
| | | }; |
| | | foolrbjicon.AddChidren(btnfoolrtext); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | Tag = foolr.Key, |
| | | X = btnfoolricon.Right + Application.GetRealWidth(12), |
| | | TextSize = 14, |
| | | }; |
| | | foolrRowLayout.AddChidren(btnfoolrname); |
| | | if (foolrname.Text == foolr.Value) |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | SelectedTextColor = ZigbeeColor.Current.LogicAddColor, |
| | | TextSize = 14, |
| | | }; |
| | | deviceRow.AddChidren(devicename); |
| | | switch (common.CommonDevice.Type) |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(50), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Height = Application.GetRealHeight(180), |
| | | //SelectedBackgroundColor = 0xfffe5e00, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(180), |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | Text = Language.StringByID(MyInternationalizationString.OnOffSwitch) + common.DeviceEpoint.ToString(), |
| | | TextSize = 14, |
| | | //SelectedBackgroundColor = 0xfffe5e00, |
| | | }; |
| | | buttonRow.AddChidren(button); |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(80), |
| | | Y = timetype.Bottom + Application.GetRealHeight(70), |
| | | TextSize = 14, |
| | | }; |
| | | devicefra.AddChidren(Btntemperaturevalue); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextID = MyInternationalizationString.device, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize=15, |
| | | }; |
| | | devicerow.AddChidren(btndevice); |
| | | |
| | |
| | | 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); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextID = MyInternationalizationString.device, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | devicerow.AddChidren(btndevice); |
| | | |
| | |
| | | TextID = MyInternationalizationString.scene, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | sceneRowLayout.AddChidren(scene); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | Height = Application.GetRealHeight(130), |
| | | Tag = Send.LockList[i], |
| | | TextSize = 14, |
| | | }; |
| | | userRow.AddChidren(usernameBtn); |
| | | |
| | |
| | | { |
| | | Height = Application.GetRealHeight(140), |
| | | LineColor = ZigbeeColor.Current.LogicRowLayoutLineColor, |
| | | |
| | | }; |
| | | lockcolorfra1.AddChidren(lockRow); |
| | | var Btncancel = new Button |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | lockRow.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(100), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | lockRow.AddChidren(Btncomplete); |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | Text = userIdmode.ModeName, |
| | | TextSize = 14, |
| | | }; |
| | | doorlockRow.AddChidren(doorlockBtn); |
| | | //(0按键/3卡/15指纹) |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(160), |
| | |
| | | Y = Application.GetRealHeight(92), |
| | | //TextID = MyInternationalizationString.customroom, |
| | | Text = Config.Instance.Home.GetCurrentFloorName, |
| | | TextSize = 14, |
| | | }; |
| | | topRowLayout.AddChidren(foolrname); |
| | | var dropdown = new Button |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | X = Application.GetRealWidth(80), |
| | | TextID = MyInternationalizationString.selecfoolr, |
| | | TextSize = 14, |
| | | }; |
| | | foolrbjicon.AddChidren(btnfoolrtext); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | Tag = foolr.Key, |
| | | X = btnfoolricon.Right + Application.GetRealWidth(12), |
| | | TextSize = 14, |
| | | }; |
| | | foolrRowLayout.AddChidren(btnfoolrname); |
| | | if (foolrname.Text == foolr.Value) |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | SelectedTextColor = ZigbeeColor.Current.LogicAddColor, |
| | | TextSize = 14, |
| | | }; |
| | | deviceRow.AddChidren(devicename); |
| | | switch (common.CommonDevice.Type) |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(50), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(160), |
| | |
| | | Y = Application.GetRealHeight(92), |
| | | //TextID = MyInternationalizationString.customroom, |
| | | Text = Config.Instance.Home.GetCurrentFloorName, |
| | | TextSize = 14, |
| | | }; |
| | | topRowLayout.AddChidren(foolrname); |
| | | var dropdown = new Button |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | saveframeLayout.AddChidren(btnsave); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | X = Application.GetRealWidth(80), |
| | | TextID = MyInternationalizationString.selecfoolr, |
| | | TextSize = 14, |
| | | }; |
| | | foolrbjicon.AddChidren(btnfoolrtext); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | Tag = foolr.Key, |
| | | X = btnfoolricon.Right + Application.GetRealWidth(12), |
| | | TextSize = 14, |
| | | }; |
| | | foolrRowLayout.AddChidren(btnfoolrname); |
| | | if (foolrname.Text == foolr.Value) |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | SelectedTextColor = ZigbeeColor.Current.LogicAddColor, |
| | | TextSize = 14, |
| | | }; |
| | | sceneRow.AddChidren(scenename); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextID = MyInternationalizationString.automationname, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Y = Application.GetRealHeight(35), |
| | | TextSize = 15, |
| | | }; |
| | | logicnamefl.AddChidren(text); |
| | | |
| | |
| | | X = text.Right, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 13, |
| | | TextSize = 14, |
| | | Text = Common.Logic.CurrentLogic.LogicName, |
| | | //TextID=MyInternationalizationString.automation1, |
| | | }; |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | TextSize = 16, |
| | | TextSize = 15, |
| | | Gravity = Gravity.CenterVertical, |
| | | }); |
| | | |
| | |
| | | var addtextbtn = new Button |
| | | { |
| | | Height = Application.GetRealHeight(58), |
| | | Width = Application.GetRealWidth(300), |
| | | Width = Application.GetRealWidth(500), |
| | | Y = Application.GetRealHeight(45 + 30), |
| | | TextColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | TextID = MyInternationalizationString.selectunlockingmode, |
| | | X = Application.GetRealWidth(390), |
| | | TextSize = 14, |
| | | }; |
| | | addfl.AddChidren(addtextbtn); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = deviceinof.DeviceEpointName, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(btndevice); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Application.GetRealWidth(400), |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(devicestatus); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | TextSize = 16, |
| | | TextSize = 15, |
| | | Gravity = Gravity.CenterVertical, |
| | | }; |
| | | targetRowLayout.AddChidren(btntargettitle); |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | TextID = MyInternationalizationString.lockaddaction, |
| | | X = Application.GetRealWidth(390), |
| | | TextSize = 14, |
| | | }; |
| | | addfl.AddChidren(addtextbtn); |
| | | EventHandler<MouseEventArgs> addfunctionclick = (sender, e) => |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = deviceinof.DeviceEpointName, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(btndevicename); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Application.GetRealWidth(450), |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(devicestatus); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = sceneinof.Name, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(btndevicename); |
| | | |
| | |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextID = MyInternationalizationString.pushswitch, |
| | | TextSize = 14, |
| | | }; |
| | | pushswitchRowlayout.AddChidren(btnswitchtxet); |
| | | |
| | |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextSize = 14, |
| | | }; |
| | | custompushRowLayout.AddChidren(btncustompush); |
| | | |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | saveFrameLayout.AddChidren(btnsave); |
| | | btnsave.MouseUpEventHandler += async (sender, e) => |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Gravity = Gravity.CenterVertical, |
| | | TextSize = 15, |
| | | }; |
| | | logicRowlayout.AddChidren(logicnameBtn); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | middle.AddChidren(saveBtn); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Tag = intvalue, |
| | | TextSize = 14, |
| | | }; |
| | | timeRow.AddChidren(timeBtn); |
| | | |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | saveFrameLayout.AddChidren(btnsave); |
| | | btnsave.MouseUpEventHandler += (sender, e) => |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextID = MyInternationalizationString.automationname, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Y = Application.GetRealHeight(35), |
| | | TextSize = 15, |
| | | }; |
| | | logicnamefl.AddChidren(text); |
| | | |
| | |
| | | X = text.Right, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 13, |
| | | TextSize = 14, |
| | | Text = Common.Logic.CurrentLogic.LogicName, |
| | | //TextID=MyInternationalizationString.automation1, |
| | | }; |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | TextSize = 16, |
| | | TextSize = 15, |
| | | Gravity = Gravity.CenterVertical, |
| | | }); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | TextID = MyInternationalizationString.addconditions, |
| | | X = Application.GetRealWidth(390), |
| | | TextSize = 14, |
| | | }; |
| | | addfl.AddChidren(addtextbtn); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Gravity = Gravity.CenterVertical, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(timevalue); |
| | | |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | X = conditionsRowLayout.Width - Application.GetRealWidth(400), |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(timeTxet); |
| | | |
| | |
| | | Text = conditions["StartHour"] + ":" + s1 + "-" + conditions["StopHour"] + ":" + s2, |
| | | //TextColor = 0xff121212, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(timevalue); |
| | | var timeTxet = new Button |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | X = conditionsRowLayout.Width - Application.GetRealWidth(400), |
| | | TextID = MyInternationalizationString.timeframe, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(timeTxet); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = deviceinof.DeviceEpointName, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(btndevice); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Application.GetRealWidth(400), |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(devicestatus); |
| | | |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | Text = logicinof.LogicName, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | //TextColor = 0xff121212, |
| | | }; |
| | | conditionsRowLayout.AddChidren(btnlogic); |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Application.GetRealWidth(500), |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(logicstatus); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | //TextColor = 0xff121212, |
| | | TextID = MyInternationalizationString.security, |
| | | TextSize = 14, |
| | | }; |
| | | //conditionsRowLayout.AddChidren(btnsecurity); |
| | | |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(securitystatus); |
| | | |
| | |
| | | break; |
| | | case 7: |
| | | { |
| | | |
| | | conditionIcon.UnSelectedImagePath = "ZigeeLogic/position.png"; |
| | | var btnlocation = new Button |
| | | { |
| | | Width = Application.GetRealWidth(700), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Gravity = Gravity.CenterVertical, |
| | | //Text = "地理位置", |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | //TextColor = 0xff121212, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextID = MyInternationalizationString.geographicalposition, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(btnlocation); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Application.GetRealWidth(500), |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(locationstatus); |
| | | foreach (var radius in Common.Logic.CurrentLogic.Accounts) |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | TextSize = 16, |
| | | TextSize = 15, |
| | | Gravity = Gravity.CenterVertical, |
| | | }; |
| | | targetRowLayout.AddChidren(btntargettitle); |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | TextID = MyInternationalizationString.addfunction, |
| | | X = Application.GetRealWidth(390), |
| | | TextSize = 14, |
| | | }; |
| | | addfl.AddChidren(addtextbtn); |
| | | EventHandler<MouseEventArgs> addfunctionclick = (sender, e) => |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = deviceinof.DeviceEpointName, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(btndevicename); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Application.GetRealWidth(450), |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(devicestatus); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = sceneinof.Name, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(btndevicename); |
| | | |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | Text = logicinof.LogicName, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | //TextColor = 0xff121212, |
| | | }; |
| | | actionsrowLayout.AddChidren(btnlogic); |
| | |
| | | X = Application.GetRealWidth(1080 - 330), |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(logicstatus); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | //TextColor = 0xff121212, |
| | | TextID = MyInternationalizationString.security, |
| | | TextSize = 14, |
| | | }; |
| | | //actionsrowLayout.AddChidren(btnsecurity); |
| | | |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(securitystatus); |
| | | |
| | |
| | | Width = Application.GetRealWidth(500), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(delaytimeBtn); |
| | | if (Minutes != 0) |
| | |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextSize = 14, |
| | | }; |
| | | weekRowLayout.AddChidren(settxet); |
| | | var btnweektext = new Button |
| | |
| | | TextID = MyInternationalizationString.everyday, |
| | | Y = Application.GetRealHeight(35), |
| | | X = settxet.Right, |
| | | TextSize = 14, |
| | | }; |
| | | weekRowLayout.AddChidren(btnweektext); |
| | | |
| | |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextID = MyInternationalizationString.pushswitch, |
| | | TextSize = 14, |
| | | }; |
| | | pushswitchRowlayout.AddChidren(btnswitchtxet); |
| | | |
| | |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextSize = 14, |
| | | }; |
| | | custompushRowLayout.AddChidren(btncustompush); |
| | | |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize=16, |
| | | }; |
| | | saveFrameLayout.AddChidren(btnsave); |
| | | btnsave.MouseUpEventHandler += async (sender, e) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(100), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.Allconditions, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | androw.AddChidren(andbtn); |
| | |
| | | TextID = MyInternationalizationString.anycondition, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | orrow.AddChidren(orbtn); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(160), |
| | |
| | | Y = Application.GetRealHeight(92), |
| | | //TextID = MyInternationalizationString.customroom, |
| | | Text = Config.Instance.Home.GetCurrentFloorName, |
| | | TextSize = 14, |
| | | }; |
| | | topRowLayout.AddChidren(foolrname); |
| | | var dropdown = new Button |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | X = Application.GetRealWidth(80), |
| | | TextID = MyInternationalizationString.selecfoolr, |
| | | TextSize = 14, |
| | | }; |
| | | foolrbjicon.AddChidren(btnfoolrtext); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | Tag = foolr.Key, |
| | | X = btnfoolricon.Right + Application.GetRealWidth(12), |
| | | TextSize = 14, |
| | | }; |
| | | foolrRowLayout.AddChidren(btnfoolrname); |
| | | if (foolrname.Text == foolr.Value) |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | SelectedTextColor = ZigbeeColor.Current.LogicAddColor, |
| | | TextSize = 14, |
| | | }; |
| | | deviceRow.AddChidren(devicename); |
| | | switch (common.CommonDevice.Type) |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(50), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | Text = user.UserName, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | userRow.AddChidren(userBtn); |
| | | |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | lockRow.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(100), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | lockRow.AddChidren(Btncomplete); |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | Text= userifon.ModeName, |
| | | TextSize = 14, |
| | | }; |
| | | doorlockRow.AddChidren(doorlockBtn); |
| | | //(1按键/3卡/15指纹) |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.logicathomegarrison), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | |
| | | }; |
| | | athomedefenceRowLayout.AddChidren(btnathomedefence); |
| | | var athomedefenceSelected = new SelectedButton(789); |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.logicremovehomegarrison), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | |
| | | }; |
| | | leavehomedefenceRowLayout.AddChidren(leavehomebtndefence); |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextID = MyInternationalizationString.withdrawal, |
| | | TextSize = 15, |
| | | |
| | | }; |
| | | withdrawalRowLayout.AddChidren(btnwithdrawal); |
| | |
| | | TextID = MyInternationalizationString.urgentwithdrawal, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | urgentwithdrawalRowLayout.AddChidren(btnurgentwithdrawal); |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 门锁列表 |
| | | /// </summary> |
| | | public static List<MembershipIfon> LockList = new List<MembershipIfon>(); |
| | | |
| | | /// <summary> |
| | | /// 当前门锁 |
| | | /// </summary> |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(160), |
| | |
| | | Y = Application.GetRealHeight(92), |
| | | //TextID = MyInternationalizationString.customroom, |
| | | Text = Config.Instance.Home.GetCurrentFloorName, |
| | | TextSize = 14, |
| | | }; |
| | | topRowLayout.AddChidren(foolrname); |
| | | var dropdown = new Button |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | X = Application.GetRealWidth(80), |
| | | TextID = MyInternationalizationString.selecfoolr, |
| | | TextSize = 14, |
| | | }; |
| | | foolrbjicon.AddChidren(btnfoolrtext); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | Tag = foolr.Key, |
| | | X = btnfoolricon.Right + Application.GetRealWidth(12), |
| | | TextSize = 14, |
| | | }; |
| | | foolrRowLayout.AddChidren(btnfoolrname); |
| | | if (foolrname.Text == foolr.Value) |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | SelectedTextColor = ZigbeeColor.Current.LogicAddColor, |
| | | TextSize = 14, |
| | | }; |
| | | deviceRow.AddChidren(devicename); |
| | | switch (common.CommonDevice.Type) |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(50), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(160), |
| | |
| | | Y = Application.GetRealHeight(92), |
| | | // TextID = MyInternationalizationString.customroom, |
| | | Text = Config.Instance.Home.GetCurrentFloorName, |
| | | TextSize = 14, |
| | | }; |
| | | topRowLayout.AddChidren(foolrname); |
| | | var dropdown = new Button |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | X = Application.GetRealWidth(80), |
| | | TextID = MyInternationalizationString.selecfoolr, |
| | | TextSize = 14, |
| | | }; |
| | | foolrbjicon.AddChidren(btnfoolrtext); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | Tag = foolr.Key, |
| | | X = btnfoolricon.Right + Application.GetRealWidth(12), |
| | | TextSize = 14, |
| | | }; |
| | | foolrRowLayout.AddChidren(btnfoolrname); |
| | | if (foolrname.Text == foolr.Value) |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | SelectedTextColor = ZigbeeColor.Current.LogicAddColor, |
| | | TextSize = 14, |
| | | }; |
| | | deviceRow.AddChidren(devicename); |
| | | switch (common.CommonDevice.Type) |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(50), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | } |
| | | switch (common.Type) |
| | | { |
| | | ///灯光 |
| | | case DeviceType.OnOffOutput: |
| | | { |
| | | dictionary(deviceConditionsInfo, "Cluster_ID", "6"); |
| | | dictionary(deviceConditionsInfo, "AttriButeId", "0"); |
| | | dictionary(deviceConditionsInfo, "Range", "1"); |
| | | dictionary(deviceConditionsInfo, "AttriButeData2", "0"); |
| | | |
| | | #region 灯光View |
| | | |
| | | |
| | | |
| | | var openframelayout = new FrameLayout |
| | | { |
| | | Height = Application.GetRealHeight(160), |
| | | Y = timetype.Bottom + Application.GetRealHeight(20), |
| | | }; |
| | | devicefra.AddChidren(openframelayout); |
| | | |
| | | var openrowlayout = new RowLayout |
| | | { |
| | | Y = Application.GetRealHeight(30), |
| | | Width = Application.GetRealWidth(920), |
| | | Height = Application.GetRealHeight(130), |
| | | X = Application.GetRealWidth(80), |
| | | LineColor = ZigbeeColor.Current.LogicRowLayoutLineColor, |
| | | }; |
| | | openframelayout.AddChidren(openrowlayout); |
| | | |
| | | var btnopen = new Button |
| | | { |
| | | Width = Application.GetRealWidth(600), |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | | var openBtnSelected = new SelectedButton(); |
| | | openrowlayout.AddChidren(openBtnSelected); |
| | | |
| | | |
| | | var closeframelayout = new FrameLayout |
| | | { |
| | | Height = Application.GetRealHeight(160), |
| | | Y = openframelayout.Bottom, |
| | | }; |
| | | devicefra.AddChidren(closeframelayout); |
| | | var closerowlayout = new RowLayout |
| | | { |
| | | Y = Application.GetRealHeight(30), |
| | | Width = Application.GetRealWidth(920), |
| | | Height = Application.GetRealHeight(130), |
| | | X = Application.GetRealWidth(80), |
| | | LineColor = ZigbeeColor.Current.LogicBackgroundColor, |
| | | }; |
| | | closeframelayout.AddChidren(closerowlayout); |
| | | |
| | | var btnclose = new Button |
| | | { |
| | | //Text = "关", |
| | | TextID = MyInternationalizationString.close, |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | | var closeBtnSelected = new SelectedButton(); |
| | | closerowlayout.AddChidren(closeBtnSelected); |
| | | #endregion |
| | | |
| | | ///点击确认事件 |
| | | EventHandler<MouseEventArgs> openclick = (sender, e) => |
| | | { |
| | | openBtnSelected.Visible = true; |
| | | closeBtnSelected.Visible = false; |
| | | btnopen.TextColor = ZigbeeColor.Current.LogicBtnSelectedColor; |
| | | btnclose.TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor; |
| | | SelectedDeviceStatuscondition = "OnOffOutput"; |
| | | dictionary(deviceConditionsInfo, "AttriButeData1", "1");//默认值 |
| | | |
| | | |
| | | }; |
| | | openrowlayout.MouseUpEventHandler += openclick; |
| | | btnopen.MouseUpEventHandler += openclick; |
| | | openBtnSelected.MouseUpEventHandler += openclick; |
| | | openframelayout.MouseUpEventHandler += openclick; |
| | | ///点击取消事件 |
| | | EventHandler<MouseEventArgs> closeclick = (sender, e) => |
| | | { |
| | | btnopen.TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor; |
| | | btnclose.TextColor = ZigbeeColor.Current.LogicBtnSelectedColor; |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = true; |
| | | SelectedDeviceStatuscondition = "OnOffOutput"; |
| | | dictionary(deviceConditionsInfo, "AttriButeData1", "0");//默认值 |
| | | |
| | | }; |
| | | closerowlayout.MouseUpEventHandler += closeclick; |
| | | btnclose.MouseUpEventHandler += closeclick; |
| | | closeBtnSelected.MouseUpEventHandler += closeclick; |
| | | closeframelayout.MouseUpEventHandler += closeclick; |
| | | if (edit && devices != null) |
| | | { |
| | | if (devices["AttriButeId"] == "0") |
| | | { |
| | | if (devices["AttriButeData1"] == "1") |
| | | { |
| | | btnopen.TextColor = ZigbeeColor.Current.LogicBtnSelectedColor; |
| | | btnclose.TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor; |
| | | openBtnSelected.Visible = true; |
| | | closeBtnSelected.Visible = false; |
| | | } |
| | | else |
| | | { |
| | | btnopen.TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor; |
| | | btnclose.TextColor = ZigbeeColor.Current.LogicBtnSelectedColor; |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = true; |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | break; |
| | | case DeviceType.WindowCoveringDevice: |
| | | { |
| | | |
| | | dictionary(deviceConditionsInfo, "Cluster_ID", "258"); |
| | | dictionary(deviceConditionsInfo, "AttriButeId", "8"); |
| | | dictionary(deviceConditionsInfo, "Range", "0"); |
| | | dictionary(deviceConditionsInfo, "AttriButeData2", "0"); |
| | | |
| | | #region 窗帘View |
| | | devicefra.Y = Application.GetRealHeight(1920 - 30 - 720); |
| | | devicefra.Height = Application.GetRealHeight(720); |
| | | var windowCoveringfra = new FrameLayout |
| | | { |
| | | Y = Application.GetRealHeight(180), |
| | | Height = Application.GetRealHeight(180 * 2 + 30), |
| | | }; |
| | | devicefra.AddChidren(windowCoveringfra); |
| | | |
| | | var openrowlayout = new RowLayout |
| | | { |
| | | Height = Application.GetRealHeight(180), |
| | | }; |
| | | windowCoveringfra.AddChidren(openrowlayout); |
| | | |
| | | var btnopen = new Button |
| | | { |
| | | //Text = "开", |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(50), |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(180), |
| | | //SelectedBackgroundColor = 0xfffe5e00, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | | var openBtnSelected = new Button |
| | | { |
| | | X = Application.GetRealWidth(1000 - 150), |
| | | Width = Application.GetMinRealAverage(110), |
| | | Height = Application.GetMinRealAverage(110), |
| | | UnSelectedImagePath = "Item/YesSelected.png", |
| | | Visible = false, |
| | | Gravity = Gravity.CenterVertical |
| | | }; |
| | | openrowlayout.AddChidren(openBtnSelected); |
| | | |
| | | var closerowlayout = new RowLayout |
| | | { |
| | | Y = openrowlayout.Bottom, |
| | | Height = Application.GetRealHeight(180), |
| | | }; |
| | | windowCoveringfra.AddChidren(closerowlayout); |
| | | |
| | | var btnclose = new Button |
| | | { |
| | | //Text = "关", |
| | | TextID = MyInternationalizationString.close, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(50), |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(180), |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | | var closeBtnSelected = new Button |
| | | { |
| | | X = Application.GetRealWidth(1000 - 150), |
| | | Width = Application.GetMinRealAverage(110), |
| | | Height = Application.GetMinRealAverage(110), |
| | | UnSelectedImagePath = "Item/YesSelected.png", |
| | | Visible = false, |
| | | Gravity = Gravity.CenterVertical |
| | | }; |
| | | closerowlayout.AddChidren(closeBtnSelected); |
| | | #endregion |
| | | |
| | | ///点击确认事件 |
| | | EventHandler<MouseEventArgs> openclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatuscondition = "WindowCoveringDevice"; |
| | | openBtnSelected.Visible = true; |
| | | closeBtnSelected.Visible = false; |
| | | dictionary(deviceConditionsInfo, "AttriButeData1", "95");//默认值 |
| | | |
| | | }; |
| | | openrowlayout.MouseUpEventHandler += openclick; |
| | | btnopen.MouseUpEventHandler += openclick; |
| | | openBtnSelected.MouseUpEventHandler += openclick; |
| | | ///点击取消事件 |
| | | EventHandler<MouseEventArgs> closeclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatuscondition = "WindowCoveringDevice"; |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = true; |
| | | dictionary(deviceConditionsInfo, "AttriButeData1", "5");//默认值 |
| | | |
| | | }; |
| | | closerowlayout.MouseUpEventHandler += closeclick; |
| | | btnclose.MouseUpEventHandler += closeclick; |
| | | closeBtnSelected.MouseUpEventHandler += closeclick; |
| | | |
| | | if (edit && devices != null) |
| | | { |
| | | if (devices["AttriButeId"] == "8") |
| | | { |
| | | if (int.Parse(devices["AttriButeData1"]) > 5) |
| | | { |
| | | openBtnSelected.Visible = true; |
| | | closeBtnSelected.Visible = false; |
| | | } |
| | | else |
| | | { |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = true; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | break; |
| | | case DeviceType.IASZone: |
| | | { |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | } |
| | | break; |
| | | case DeviceType.OnOffSwitch: |
| | | { |
| | | |
| | | dictionary(deviceConditionsInfo, "Cluster_ID", "1282"); |
| | | dictionary(deviceConditionsInfo, "AttriButeId", "1283"); |
| | | dictionary(deviceConditionsInfo, "Range", "0");//按键特殊 |
| | | dictionary(deviceConditionsInfo, "AttriButeData1", "0"); |
| | | dictionary(deviceConditionsInfo, "AttriButeData2", "0"); |
| | | |
| | | devicefra.Y = Application.GetRealHeight(1920 - 140 - 160 - 20 - 50); |
| | | devicefra.Height = Application.GetRealHeight(140 + 160 + 20 + 50); |
| | | var OnOffOutputfra = new FrameLayout |
| | | { |
| | | Height = Application.GetRealHeight(160), |
| | | Y = timetype.Bottom + Application.GetRealHeight(20), |
| | | }; |
| | | devicefra.AddChidren(OnOffOutputfra); |
| | | |
| | | var buttonRow = new RowLayout |
| | | { |
| | | Y = Application.GetRealHeight(30), |
| | | Width = Application.GetRealWidth(920), |
| | | Height = Application.GetRealHeight(130), |
| | | X = Application.GetRealWidth(80), |
| | | LineColor = ZigbeeColor.Current.LogicBackgroundColor, |
| | | }; |
| | | OnOffOutputfra.AddChidren(buttonRow); |
| | | |
| | | var button = new Button |
| | | { |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | Text = Language.StringByID(MyInternationalizationString.OnOffSwitch) + common.DeviceEpoint.ToString(), |
| | | //SelectedBackgroundColor = 0xfffe5e00, |
| | | }; |
| | | buttonRow.AddChidren(button); |
| | | |
| | | var buttonSelected = new SelectedButton(); |
| | | buttonRow.AddChidren(buttonSelected); |
| | | EventHandler<MouseEventArgs> buttonclick = (sender, e) => |
| | | { |
| | | buttonSelected.Visible = true; |
| | | SelectedDeviceStatuscondition = "OnOffSwitch"; |
| | | button.TextColor = ZigbeeColor.Current.LogicBtnSelectedColor; |
| | | |
| | | }; |
| | | buttonRow.MouseUpEventHandler += buttonclick; |
| | | button.MouseUpEventHandler += buttonclick; |
| | | buttonSelected.MouseUpEventHandler += buttonclick; |
| | | OnOffOutputfra.MouseUpEventHandler += buttonclick; |
| | | |
| | | if (edit && devices != null) |
| | | { |
| | | buttonSelected.Visible = true; |
| | | button.TextColor = ZigbeeColor.Current.LogicBtnSelectedColor; |
| | | } |
| | | |
| | | } |
| | | break; |
| | | case DeviceType.DoorLock: |
| | | { |
| | | flMain.RemoveFromParent(); |
| | | var memberList = new MemberList(); |
| | | UserView.HomePage.Instance.AddChidren(memberList); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | memberList.Show(common); |
| | | } |
| | | break; |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Tag = intvalue, |
| | | TextSize = 15, |
| | | }; |
| | | timeRow.AddChidren(timeBtn); |
| | | |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | saveFrameLayout.AddChidren(btnsave); |
| | | btnsave.MouseUpEventHandler += (sender, e) => |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextID = MyInternationalizationString.automationname, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Y = Application.GetRealHeight(35), |
| | | TextSize = 15, |
| | | }; |
| | | logicnamefl.AddChidren(text); |
| | | |
| | |
| | | X = text.Right, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 13, |
| | | TextSize = 14, |
| | | Text = Common.Logic.CurrentLogic.LogicName, |
| | | //TextID=MyInternationalizationString.automation1, |
| | | }; |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | TextSize = 16, |
| | | TextSize = 15, |
| | | Gravity = Gravity.CenterVertical, |
| | | }); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | TextID = MyInternationalizationString.addconditions, |
| | | X = Application.GetRealWidth(390), |
| | | TextSize = 14, |
| | | }; |
| | | addfl.AddChidren(addtextbtn); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = deviceinof.DeviceEpointName, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(btndevice); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Application.GetRealWidth(400), |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(devicestatus); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | TextSize = 16, |
| | | TextSize = 15, |
| | | Gravity = Gravity.CenterVertical, |
| | | }; |
| | | targetRowLayout.AddChidren(btntargettitle); |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | TextID = MyInternationalizationString.addfunction, |
| | | X = Application.GetRealWidth(390), |
| | | TextSize = 14, |
| | | }; |
| | | addfl.AddChidren(addtextbtn); |
| | | EventHandler<MouseEventArgs> addfunctionclick = (sender, e) => |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = deviceinof.DeviceEpointName, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(btndevicename); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Application.GetRealWidth(450), |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(devicestatus); |
| | | |
| | |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextSize = 14, |
| | | }; |
| | | weekRowLayout.AddChidren(settxet); |
| | | var btnweektext = new Button |
| | |
| | | TextID = MyInternationalizationString.everyday, |
| | | Y = Application.GetRealHeight(35), |
| | | X = settxet.Right, |
| | | TextSize = 14, |
| | | }; |
| | | weekRowLayout.AddChidren(btnweektext); |
| | | |
| | |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextID = MyInternationalizationString.pushswitch, |
| | | TextSize = 14, |
| | | }; |
| | | pushswitchRowlayout.AddChidren(btnswitchtxet); |
| | | |
| | |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextSize = 14, |
| | | }; |
| | | custompushRowLayout.AddChidren(btncustompush); |
| | | |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(100), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.Allconditions, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | androw.AddChidren(andbtn); |
| | |
| | | TextID = MyInternationalizationString.anycondition, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | orrow.AddChidren(orbtn); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | fra.AddChidren(btnsave); |
| | | #endregion |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.type), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(265) |
| | | Width = Application.GetRealWidth(265), |
| | | TextSize = 14, |
| | | }; |
| | | typeRowlayout.AddChidren(btnTypeTextTitle); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextID = MyInternationalizationString.timeframe, |
| | | TextSize = 14, |
| | | }; |
| | | typeRowlayout.AddChidren(btnimmediateexecution); |
| | | |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.starttime), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(265) |
| | | Width = Application.GetRealWidth(265), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timestartrow.AddChidren(btnstarttimetext); |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Tag = "0", |
| | | TextSize = 14, |
| | | }; |
| | | timestartrow.AddChidren(btnstarttime); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(265), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timeendrow.AddChidren(btnendtimetext); |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.type), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(265) |
| | | Width = Application.GetRealWidth(265), |
| | | TextSize = 14, |
| | | }; |
| | | typeRowlayout.AddChidren(btnTypeTextTitle); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextID=MyInternationalizationString.immediateexecution, |
| | | TextSize = 14, |
| | | }; |
| | | typeRowlayout.AddChidren(btnimmediateexecution); |
| | | |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.moment), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width=Application.GetRealWidth(265) |
| | | Width=Application.GetRealWidth(265), |
| | | TextSize = 14, |
| | | }; |
| | | rowSelectedTimeType.AddChidren(btnTimeText); |
| | | |
| | |
| | | Width = Application.GetRealWidth(630), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | rowSelectedTimeType.AddChidren(btnTimeTpye); |
| | | |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.Advancedelay), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(265) |
| | | Width = Application.GetRealWidth(265), |
| | | TextSize = 14, |
| | | }; |
| | | rowDelayType.AddChidren(btnDelayTimeText); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Text = textvalue, |
| | | TextSize = 14, |
| | | }; |
| | | rowDelayType.AddChidren(btnDelayTime); |
| | | |
| | |
| | | BackgroundColor =ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor= ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | fra.AddChidren(btnsave); |
| | | btnsave.MouseUpEventHandler += (sender, e) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(100), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.sunrise, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | sunriseRow.AddChidren(btnsunrisetext); |
| | | |
| | |
| | | TextID = MyInternationalizationString.sunset, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | sunsetRow.AddChidren(btnsunsettext); |
| | | |
| | |
| | | TextID = MyInternationalizationString.noon, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | noonRow.AddChidren(btnnoontext); |
| | | |
| | |
| | | TextID = MyInternationalizationString.logiccustom, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | logiccustomRow.AddChidren(btnlogiccustomtext); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | saveFramelayout.AddChidren(saveBtn); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = name, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | weekRow.AddChidren(weekTextBtn); |
| | | |