| | |
| | | Common.Logic.CurrentLogic.LogicName = logicTextBox.Text.Trim(); |
| | | if (Common.Logic.CurrentLogic.Conditions.Count == 1) |
| | | { |
| | | new LogicDveiceStatus { }.ConditionView(false, this); |
| | | new LogicDveiceStatus { }.ConditionView(false, this,null); |
| | | } |
| | | else |
| | | { |
| | |
| | | EventHandler<MouseEventArgs> editclick = (sender, e) => |
| | | { |
| | | Common.Logic.CurrentLogic.LogicName = logicTextBox.Text.Trim(); |
| | | new LogicDveiceStatus { }.ConditionView(true, this); |
| | | new LogicDveiceStatus { }.ConditionView(true, this, relationship); |
| | | }; |
| | | row.MouseUpEventHandler += editclick; |
| | | relationship.MouseUpEventHandler += editclick; |
| | |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | cycle.Show(); |
| | | |
| | | //var cyclicCycle = new CyclicCycle(() => { UpdateWeek(btnweektext); }); |
| | | //UserView.HomePage.Instance.AddChidren(cyclicCycle); |
| | | //UserView.HomePage.Instance.PageIndex += 1; |
| | | //cyclicCycle.Show(); |
| | | }; |
| | | weekBtn.MouseUpEventHandler += cycleclick; |
| | | weekview.clickBtn.MouseUpEventHandler += cycleclick; |