public virtual void RemovedFromCanvas(LTSCanvas canvas) { //Remove nail foreach (NailItem nailItem in this.Nails) canvas.RemoveSingleCanvasItem(nailItem); this.Nails.Clear(); //Remove transition canvas.RemoveSingleCanvasItem(this.transition); canvas.RemoveSingleRoute(this); }
public override void RemovedFromCanvas(LTSCanvas canvas) { //Remove nail foreach (NailItem nailItem in this.Nails) { canvas.RemoveSingleCanvasItem(nailItem); } this.Nails.Clear(); //Remove transition canvas.RemoveSingleCanvasItem(Label); canvas.RemoveSingleRoute(this); }