예제 #1
0
 public RUTaskNode(WFTEditor wftEditor, TaskNode selectedTaskNode, string operateType)
 {
     this.mainWindow      = wftEditor;
     this.currentTaskNode = selectedTaskNode;
     this.operate         = operateType;
     this.associateLines  = wftEditor.viewPanel.shapeData.FindAssociatedLine(selectedTaskNode);
 }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }
예제 #4
0
 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;
 }
예제 #5
0
 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);
     }
 }
예제 #6
0
 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;
 }
예제 #7
0
 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;
 }
예제 #8
0
 public RULine(WFTEditor wftEditor, Line theLine, string operateType)
 {
     this.mainWindow  = wftEditor;
     this.currentLine = theLine;
     this.operate     = operateType;
 }