public override void Undo() { foreach (IShape wShape in FShapes) { wShape.IsSelected = true; wShape.Rotate(FAngle * -1); } FCanvas.Draw(); }
public override void Undo() { foreach (IShape wShape in FBaseShapes) { wShape.IsSelected = true; FCanvas.Shapes.RemoveAt(FCanvas.Shapes.Count - 1); } FCanvas.Draw(); }
public override void Undo() { foreach (IShape wShape in FShapes) { wShape.IsSelected = true; wShape.Move(FEndPoint, FStartPoint); } FCanvas.Draw(); }
public override void Execute() { foreach (IShape wShape in FBaseShapes) { wShape.IsSelected = false; } FCanvas.Shapes.AddRange(FShapes); FCanvas.Draw(); }
public override void Execute() { FShapes = FCanvas.Shapes.Where(x => x.IsSelected).ToList(); foreach (IShape wShape in FShapes) { wShape.IsSelected = false; } FCanvas.Shapes.AddRange(FCanvas.Clipboad.Select(x => x.DeepClone())); foreach (IShape wShape in FCanvas.Clipboad) { wShape.Move(new SizeF(10, 10)); } FCanvas.Draw(); }
public override void Undo() { foreach (IShape wShape in FShapes) { wShape.IsSelected = true; } for (int i = 0; i < FCanvas.Clipboad.Count; i++) { FCanvas.Shapes.RemoveAt(FCanvas.Shapes.Count - 1); } foreach (IShape wShape in FCanvas.Clipboad) { wShape.Move(new SizeF(-10, -10)); } FCanvas.Draw(); }
public override void Execute() { FShape.IsSelected = true; IShape wShape; if (FCanvas.IsPreviewing) { wShape = FShape.DeepClone(); wShape.FramePoints.Single(x => x.CurrentLocationKind == FramePointLocationKindEnum.Bottom).IsSelected = true; } else { wShape = FShape; } FCanvas.Shapes.Add(wShape); FCanvas.Draw(); }
public override void Undo() { FCanvas.Shapes.Remove(FShape); FCanvas.Draw(); }
public override void Execute() { FCanvas.Shapes.Clear(); FCanvas.Draw(); }
public override void Undo() { FCanvas.Shapes.AddRange(FShapes); FCanvas.Draw(); }