public void Remove(ArrowLine o) { base.List.Remove(o); }
public void Add(ArrowLine o) { base.List.Add(o); o.ID = "ALINE" + this.mIndex.ToString(); this.mIndex++; }
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); }
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); }
private void AddNewTransition(ArrowLine aline, string actdefIDFrom, string actdefIDTo) { string newGuid = this.GetNewGuid(); this.mProDefDoc.AddTransition(newGuid, aline.Name, actdefIDFrom, actdefIDTo); aline.RelationalID = newGuid; }