private void Package() { MultiPointShape shape = new MultiPointShape(this.Controller.Model, points, MultiPointType.Polygon); AddMultiPointShapeCommand cmd = new AddMultiPointShapeCommand(this.Controller, shape); this.Controller.UndoManager.AddUndoCommand(cmd); cmd.Redo(); }
private void Package() { MultiPointShape shape = new MultiPointShape(this.Controller.Model, points, MultiPointType.Straight); AddMultiPointShapeCommand cmd = new AddMultiPointShapeCommand(this.Controller, shape); this.Controller.UndoManager.AddUndoCommand(cmd); this.Controller.View.ResetGhost(); cmd.Redo(); }
private void Package() { if ((points == null) || (points.Length < 1) || (points[0] == Point.Empty)) { return; } MultiPointShape shape = new MultiPointShape( this.Controller.Model, points, MultiPointType.Polygon); AddMultiPointShapeCommand cmd = new AddMultiPointShapeCommand(this.Controller, shape); this.Controller.UndoManager.AddUndoCommand(cmd); cmd.Redo(); }
private void Package() { MultiPointShape shape = new MultiPointShape(this.Controller.Model, points, MultiPointType.Curve); AddMultiPointShapeCommand cmd = new AddMultiPointShapeCommand(this.Controller, shape); this.Controller.UndoManager.AddUndoCommand(cmd); this.Controller.View.ResetGhost(); cmd.Redo(); }
private void Package() { if ((points == null) || (points.Length < 1) || (points[0] == Point.Empty)) { return; } MultiPointShape shape = new MultiPointShape( this.Controller.Model, points, MultiPointType.Straight); AddMultiPointShapeCommand cmd = new AddMultiPointShapeCommand(this.Controller, shape); this.Controller.UndoManager.AddUndoCommand(cmd); this.Controller.View.ResetGhost(); cmd.Redo(); }