| | |
| | | |
| | | 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) => |
| | |
| | | flMain.RemoveFromParent(); |
| | | }; |
| | | |
| | | var fraview1 = new FrameLayout |
| | | { |
| | | Width = Application.GetRealWidth(1080), |
| | | Height = Application.GetRealHeight(100), |
| | | Y = Application.GetRealHeight(1920 - 100), |
| | | BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor, |
| | | }; |
| | | flMain.AddChidren(fraview1); |
| | | |
| | | |
| | | var fraview = new FrameLayout |
| | | { |
| | | Width = Application.GetRealWidth(1080), |
| | | Height = Application.GetRealHeight(850), |
| | | Y = Application.GetRealHeight(1920 - 850), |
| | | BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor, |
| | | Radius = (uint)Application.GetRealHeight(60), |
| | | //Radius = (uint)Application.GetRealHeight(60), |
| | | }; |
| | | flMain.AddChidren(fraview); |
| | | fraview.SetCornerWithSameRadius(20, HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight); |
| | | |
| | | #region -------取消 完成 |
| | | var timetype = new RowLayout |
| | |
| | | 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); |
| | | |