| | |
| | | if /*插入结构*/(e.Button == MouseButtons.Left && _isInsertingObject) |
| | | { |
| | | var net = _newTemplate.network; |
| | | var net0 = _newTemplate.network.DeepCopyByBin<MapViewNetWork>(); |
| | | List<NodeViewModel> nodes = _Nodes.Select(node => (NodeViewModel)node).ToList(); |
| | | float minDist = 100f; |
| | | NodeViewModel minNode = null; |
| | |
| | | //_Network.Nodes.AddRange(net.Nodes); |
| | | //_Network.Links.AddRange(net.Links); |
| | | |
| | | _newTemplate.network = net0; |
| | | _undoOldValue = new PointF3D(0, 0, 0); |
| | | _OperaNode = _newTemplate.network.Nodes.Find(node => node.ID == _newTemplate.Node1) as NodeViewModel; |
| | | _isInsertingObject = true; |
| | | |
| | | SetMapInvalidate(); |
| | | return; |
| | | } |