| | |
| | | delayView.frameLayout.Y = sceneView.frameLayout.Bottom; |
| | | delayView.btnText.TextID = StringId.delayLogic; |
| | | delayView.btnIcon.UnSelectedImagePath = "LogicIcon/delayed.png"; |
| | | viewLayout.AddChidren(delayView.FLayoutView()); |
| | | //viewLayout.AddChidren(delayView.FLayoutView()); |
| | | #endregion |
| | | |
| | | #region 所有点击事件 |
| | | //功能点击事件 |
| | | functionView.btnClick.MouseUpEventHandler += (sen, e) => |
| | | { |
| | | FunTpye funTpye = new FunTpye(); |
| | |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | |
| | | }; |
| | | |
| | | //场景点击事件 |
| | | sceneView.btnClick.MouseUpEventHandler += (sen, e) => |
| | | { |
| | | |
| | |
| | | this.AddChidren(fLayout); |
| | | SceneMethod(fLayout); |
| | | }; |
| | | |
| | | //延时点击事件 |
| | | delayView.btnClick.MouseUpEventHandler += (sen, e) => |
| | | { |
| | | |
| | |
| | | |
| | | }; |
| | | dateView.frameLayout.AddChidren(verticalRefresh); |
| | | |
| | | //定义一个局部变量记录选中状态 |
| | | Button buttonClick = new Button(); |
| | | HDL_ON.Entity.Scene sceneSelecetd = null; |
| | | var sceneList = LogicMethod.GetSceneList(); |
| | | verticalRefresh.BeginHeaderRefreshingAction += () => |
| | | { |
| | | //关闭刷新View; |
| | | verticalRefresh.EndHeaderRefreshing(); |
| | | }; |
| | | for (int i = 0; i < sceneList.Count; i++) |
| | | { |
| | | var scene = sceneList[i]; |
| | |
| | | sceneView.btnLine.X = Application.GetRealWidth(20); |
| | | sceneView.btnLine.Width = Application.GetRealWidth(303); |
| | | sceneView.btnNextIcon.X = Application.GetRealWidth(303); |
| | | sceneView.btnNextIcon.Width = Application.GetMinRealAverage(28); |
| | | sceneView.btnNextIcon.Height = Application.GetMinRealAverage(28); |
| | | sceneView.btnNextIcon.Width = Application.GetRealWidth(28); |
| | | sceneView.btnNextIcon.Height = Application.GetRealWidth(28); |
| | | sceneView.btnNextIcon.UnSelectedImagePath = "LogicIcon/weekoff.png"; |
| | | sceneView.btnNextIcon.SelectedImagePath = "LogicIcon/weekon.png"; |
| | | verticalRefresh.AddChidren(sceneView.FLayoutView()); |
| | |
| | | Output outputDevice = new Output(); |
| | | outputDevice.target_type = "2"; |
| | | outputDevice.sid = sceneSelecetd.sid; |
| | | //没啥作用,为了数据格式统一,发送时不再判断 |
| | | outputDevice.status = new List<Dictionary<string, string>> { new Dictionary<string, string> { { "key", "scene"},{ "value", "0" } } }; |
| | | AddOutput(outputDevice); |
| | | fLayout.RemoveFromParent(); |
| | | LogicMethod.RemoveAllView(); |