Esempio n. 1
0
 public void Remove(ArrowLine o)
 {
     base.List.Remove(o);
 }
Esempio n. 2
0
 public void Add(ArrowLine o)
 {
     base.List.Add(o);
     o.ID = "ALINE" + this.mIndex.ToString();
     this.mIndex++;
 }
Esempio n. 3
0
 public void AddArrowLine(Node StartNode, Node EndNode, Color PenColor, int PenWidth)
 {
     if ((StartNode == null) || (EndNode == null))
     {
         throw new ApplicationException("连线的起始节点或终止节点不能为空");
     }
     ArrowLine o = new ArrowLine(StartNode, EndNode, PenColor, PenWidth);
     this.mALines.Add(o);
     this.SetUnitSelect(o.ID);
     this.Draw();
     this.OnUnitAdd(EventArgs.Empty);
 }
Esempio n. 4
0
 public void AddArrowLine(int x1, int y1, int x2, int y2, Color PenColor, int PenWidth)
 {
     ArrowLine o = new ArrowLine(x1, y1, x2, y2, PenColor, PenWidth);
     this.mALines.Add(o);
     this.SetUnitSelect(o.ID);
     this.Draw();
     this.OnUnitAdd(EventArgs.Empty);
 }
Esempio n. 5
0
 private void AddNewTransition(ArrowLine aline, string actdefIDFrom, string actdefIDTo)
 {
     string newGuid = this.GetNewGuid();
     this.mProDefDoc.AddTransition(newGuid, aline.Name, actdefIDFrom, actdefIDTo);
     aline.RelationalID = newGuid;
 }