| | |
| | | addconditionview.iconBtn.Visible = true; |
| | | addconditionview.titleBtn.TextID = MyInternationalizationString.ifcondition; |
| | | middle.AddChidren(addconditionview.AddDeviceView()); |
| | | |
| | | |
| | | ///添加条件的点击事件 |
| | | addconditionview.clickBtn.MouseUpEventHandler+= (sender, e) => |
| | | { |
| | |
| | | LogicView.AddDeviceView addflview = new LogicView.AddDeviceView(); |
| | | addflview.titleBtn.TextID = MyInternationalizationString.addconditions; |
| | | middle.AddChidren(addflview.AddFl()); |
| | | |
| | | addflview.clickBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | if (Common.Logic.CurrentLogic.Conditions.Count == 1) |
| | |
| | | addactionview.iconBtn.Visible = true; |
| | | addactionview.titleBtn.TextID = MyInternationalizationString.execute; |
| | | middle.AddChidren(addactionview.AddDeviceView()); |
| | | |
| | | |
| | | addactionview.clickBtn.MouseUpEventHandler+= (sender, e) => |
| | | { |
| | |
| | | ListActions.AddRange(Common.Logic.CurrentLogic.Actions); |
| | | ListActions.Add(new Dictionary<string, object>()); |
| | | |
| | | |
| | | |
| | | for (int i = 0; i < ListActions.Count; i++) |
| | | { |
| | | if (i == (ListActions.Count - 1)) |
| | |
| | | LogicView.AddDeviceView addflview = new LogicView.AddDeviceView(); |
| | | addflview.titleBtn.TextID = MyInternationalizationString.addfunction; |
| | | middle.AddChidren(addflview.AddFl()); |
| | | |
| | | |
| | | addflview.clickBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | Common.Logic.CurrentLogic.LogicName = logicTextBox.Text.Trim(); |