public static UndoRedoAction RopeRemoved(Rope rope) { return new UndoRedoAction(null, UndoRedoType.RopeRemoved, rope, null); }
public RopeAnchor(Board board, int x, int y, Rope parentRope) : base(board, x, y) { this.parentRope = parentRope; }
private void CreateRope() { lock (Board.ParentControl) { Rope rope = new Rope(Board, X, Y, Y, false, Board.SelectedLayerIndex, true); Board.BoardItems.Ropes.Add(rope); BindItem(rope.FirstAnchor, new Xna.Point()); BindItem(rope.SecondAnchor, new Xna.Point()); } }