| | |
| | | { |
| | | RemoveFromParent(); |
| | | }; |
| | | if (string.IsNullOrEmpty(Logic.currlogic.sid)) |
| | | if (string.IsNullOrEmpty(Logic.currlogic.userLogicId)) |
| | | { |
| | | topView.topNameBtn.TextID = StringId.newAutomation; |
| | | topView.setBtn.Visible = false; |
| | |
| | | #endregion |
| | | |
| | | #region 执行推送 发送通知 |
| | | /////上下间隔12像素 |
| | | //viewLayout.AddChidren(new FrameLayout { Height = Application.GetRealHeight(12) }); |
| | | ///上下间隔12像素 |
| | | viewLayout.AddChidren(new FrameLayout { Height = Application.GetRealHeight(12) }); |
| | | /////执行推送iew |
| | | //LogicView.LogicTypeTitleView push = new LogicView.LogicTypeTitleView(); |
| | | //push.frameLayout.Height = Application.GetRealHeight(50); |
| | |
| | | this.AddChidren(saveView.FLayoutView()); |
| | | saveView.btnClick.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | if (string.IsNullOrEmpty(Logic.currlogic.sid)) |
| | | if (string.IsNullOrEmpty(Logic.currlogic.userLogicId)) |
| | | { |
| | | List<string> list = new List<string>(); |
| | | foreach (var logic in Logic.LogicList) |
| | |
| | | weekTypeView.btnLine.X = Application.GetRealWidth(20); |
| | | weekTypeView.btnLine.Width = Application.GetRealWidth(303); |
| | | weekTypeView.btnNextIcon.X = Application.GetRealWidth(303); |
| | | weekTypeView.btnNextIcon.Width = Application.GetMinRealAverage(28); |
| | | weekTypeView.btnNextIcon.Height = Application.GetMinRealAverage(28); |
| | | weekTypeView.btnNextIcon.Width = Application.GetRealWidth(28); |
| | | weekTypeView.btnNextIcon.Height = Application.GetRealWidth(28); |
| | | weekTypeView.btnNextIcon.UnSelectedImagePath = "LogicIcon/weekoff.png"; |
| | | weekTypeView.btnNextIcon.SelectedImagePath = "LogicIcon/weekon.png"; |
| | | weekView.frameLayout.AddChidren(weekTypeView.FLayoutView()); |
| | |
| | | andConditionViews.btnLine.X = Application.GetRealWidth(20); |
| | | andConditionViews.btnLine.Width = Application.GetRealWidth(303); |
| | | andConditionViews.btnNextIcon.X = Application.GetRealWidth(303); |
| | | andConditionViews.btnNextIcon.Width = Application.GetMinRealAverage(28); |
| | | andConditionViews.btnNextIcon.Height = Application.GetMinRealAverage(28); |
| | | andConditionViews.btnNextIcon.Width = Application.GetRealWidth(28); |
| | | andConditionViews.btnNextIcon.Height = Application.GetRealWidth(28); |
| | | andConditionViews.btnNextIcon.UnSelectedImagePath = "LogicIcon/weekoff.png"; |
| | | andConditionViews.btnNextIcon.SelectedImagePath = "LogicIcon/weekon.png"; |
| | | meetTheConditionView.frameLayout.AddChidren(andConditionViews.FLayoutView()); |
| | |
| | | orConditionView.btnLine.X = Application.GetRealWidth(20); |
| | | orConditionView.btnLine.Width = Application.GetRealWidth(303); |
| | | orConditionView.btnNextIcon.X = Application.GetRealWidth(303); |
| | | orConditionView.btnNextIcon.Width = Application.GetMinRealAverage(28); |
| | | orConditionView.btnNextIcon.Height = Application.GetMinRealAverage(28); |
| | | orConditionView.btnNextIcon.Width = Application.GetRealWidth(28); |
| | | orConditionView.btnNextIcon.Height = Application.GetRealWidth(28); |
| | | orConditionView.btnNextIcon.UnSelectedImagePath = "LogicIcon/weekoff.png"; |
| | | orConditionView.btnNextIcon.SelectedImagePath = "LogicIcon/weekon.png"; |
| | | meetTheConditionView.frameLayout.AddChidren(orConditionView.FLayoutView()); |