| | |
| | | list.Add(logic.name); |
| | | } |
| | | |
| | | new LogicView.TipPopView().InputBox(StringId.editName, Logic.currlogic.name, StringId.nameNull, StringId.NameAlreadyExists, list, (logicName) => |
| | | new LogicView.TipPopView().InputBox(StringId.editName, Logic.currlogic.name, StringId.nameNull, StringId.NameAlreadyExists, list, (logicName,view |
| | | ) => |
| | | { |
| | | btnAutomationName.Text = logicName; |
| | | Logic.currlogic.name = logicName; |
| | | |
| | | }); |
| | | },()=> { }); |
| | | }; |
| | | nameView.btnClick.MouseUpEventHandler += editClick; |
| | | btnAutomationName.MouseUpEventHandler += editClick; |
| | |
| | | try |
| | | { |
| | | //发送删除逻辑命令; |
| | | responsePackNew = Send.delLogic(Logic.currlogic); |
| | | responsePackNew = Send.DelLogic(Logic.currlogic); |
| | | |
| | | } |
| | | catch { } |
| | |
| | | loading.Hide(); |
| | | if (responsePackNew != null && responsePackNew.Code == "0") |
| | | { |
| | | LogicMethod.RemoveAllView(); |
| | | LogicMethod.CurrLogicMethod.RemoveAllView(); |
| | | Logic.LogicList.Remove(Logic.currlogic); |
| | | MainView.MainShow(); |
| | | //发送删除逻辑命令; |