| | |
| | | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using HDL_ON.DriverLayer; |
| | | using HDL_ON.Entity; |
| | | using HDL_ON.Stan; |
| | | using HDL_ON.UI.CSS; |
| | |
| | | btnStartColor.BackgroundColor = color; |
| | | function.SetAttrState(FunctionAttributeKey.ColorfulBegin, color); |
| | | }; |
| | | var rgbView = new ColorfulSettingPage(action); |
| | | var rgbView = new ColorfulSettingPage(function, action,true); |
| | | MainPage.BasePageView.AddChidren(rgbView); |
| | | rgbView.LoadPage(function.GetAttrState(FunctionAttributeKey.ColorfulBegin)); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | |
| | | Radius = (uint)Application.GetRealWidth(14), |
| | | BorderColor = CSS_Color.DividingLineColor, |
| | | BorderWidth = 1, |
| | | BackgroundColor = (uint)(0xFF000000 + lightTemp.GetRGBcolor(function.GetAttrState(FunctionAttributeKey.ColorfulBegin))) |
| | | BackgroundColor = (uint)(0xFF000000 + lightTemp.GetRGBcolor(function.GetAttrState(FunctionAttributeKey.ColorfulEnd))) |
| | | }; |
| | | endColorView.AddChidren(btnEndColor); |
| | | |
| | |
| | | btnEndColor.BackgroundColor = color; |
| | | function.SetAttrState(FunctionAttributeKey.ColorfulEnd, color); |
| | | }; |
| | | var rgbView = new ColorfulSettingPage(action); |
| | | var rgbView = new ColorfulSettingPage(function, action,false); |
| | | MainPage.BasePageView.AddChidren(rgbView); |
| | | rgbView.LoadPage(function.GetAttrState(FunctionAttributeKey.ColorfulEnd)); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | |
| | | #endregion |
| | | |
| | | |
| | | #region 工作时长 |
| | | #region 炫彩周期 |
| | | var workHoursView = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | |
| | | btnWorkHours.Text = hour + "时"; |
| | | btnWorkHours.Text += minute + "分"; |
| | | btnWorkHours.Text += second + "秒"; |
| | | new System.Threading.Thread(() => { |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.ColorfulTime, (hour * 360 + minute * 60 + second).ToString()); |
| | | Control.Ins.SendWriteCommand(function, d); |
| | | }) { IsBackground = true }.Start(); |
| | | }); |
| | | }); |
| | | } |
| | |
| | | Height = Application.GetRealHeight(210), |
| | | Radius = (uint)Application.GetRealWidth(12), |
| | | }; |
| | | for (int i = 0; i <= 23; i += 1) |
| | | for (int i = 0; i <= 15; i += 1) |
| | | { |
| | | item1.Add(i+Language.StringByID(StringId.h)); |
| | | } |