public RUTaskNode(WFTEditor wftEditor, TaskNode selectedTaskNode, string operateType) { this.mainWindow = wftEditor; this.currentTaskNode = selectedTaskNode; this.operate = operateType; this.associateLines = wftEditor.viewPanel.shapeData.FindAssociatedLine(selectedTaskNode); }
public RUTaskNode(WFTEditor wftEditor, TaskNode selectedTaskNode, Point moveBaseOriginal, Point moveBaseFinal) { this.mainWindow = wftEditor; this.currentTaskNode = selectedTaskNode; this.operate = "OP_Move"; this.moveBaseOriginal = moveBaseOriginal; this.moveBaseFinal = moveBaseFinal; }
public RUSENode(WFTEditor wftEditor, Shape selectedShape, Point moveBaseOriginal, Point moveBaseFinal) { this.mainWindow = wftEditor; this.currentShape = selectedShape; this.operate = "OP_Move"; this.moveBaseOriginal = moveBaseOriginal; this.moveBaseFinal = moveBaseFinal; }
public RULine(WFTEditor wftEditor, Line theLine, int wantMovePoint, Point original, Point final) { this.mainWindow = wftEditor; this.currentLine = theLine; this.operate = "OP_Move"; this.wantMovePoint = wantMovePoint; this.pointOriginal = original; this.pointFinal = final; }
public RULine(WFTEditor wftEditor, Line theLine, int i, Point p, string operateType) { this.mainWindow = wftEditor; this.currentLine = theLine; this.operate = operateType; this.index = i; this.thePoint = p; if (operateType == "OP_ADD_POINT") { this.index = this.currentLine.findPointPosition(p); } }
public RUMutiShape(WFTEditor wftEditor, ArrayList selectedShapeList, Point moveBaseOriginal, Point moveBaseFinal) { this.mainWindow = wftEditor; this.currentShapeList = new ArrayList(); for (int i = 0; i < selectedShapeList.Count; i++) { this.currentShapeList.Add(selectedShapeList[i]); } this.operate = "OP_Move"; this.moveBaseOriginal = moveBaseOriginal; this.moveBaseFinal = moveBaseFinal; }
public RUMutiShape(WFTEditor wftEditor, ArrayList selectedShapeList, string operateType) { this.mainWindow = wftEditor; this.currentShapeList = new ArrayList(); for (int i = 0; i < selectedShapeList.Count; i++) { if (!this.currentShapeList.Contains(selectedShapeList[i])) { this.currentShapeList.Add(selectedShapeList[i]); } if ((selectedShapeList[i].GetType().Name.ToString() == "RouteNode") || (selectedShapeList[i].GetType().Name.ToString() == "TaskNode")) { foreach (object obj2 in this.mainWindow.viewPanel.shapeData.FindAssociatedLine((Shape)selectedShapeList[i])) { if (!selectedShapeList.Contains(obj2)) { this.currentShapeList.Add(obj2); } } } } this.operate = operateType; }
public RULine(WFTEditor wftEditor, Line theLine, string operateType) { this.mainWindow = wftEditor; this.currentLine = theLine; this.operate = operateType; }