public RemoveClassCommand(ObservableCollection<ShapeViewModel> _shapes, ObservableCollection<LineViewModel> _lines, ShapeViewModel _shapeToRemove)
 {
     shapes = _shapes;
     lines = _lines;
     shapeToRemove = _shapeToRemove;
     linesToRemove = _lines.Where(x => _shapeToRemove.getNumber() == x.From.Number || _shapeToRemove.getNumber() == x.To.Number).ToList();
 }
 public void RemoveShape(ShapeViewModel _shape)
 {
     undoRedoController.AddAndExecute(new RemoveClassCommand(Shapes, Lines, _shape));
 }
 public MoveClassCommand(ShapeViewModel _shape, double _offsetX, double _offsetY)
 {
     shape = _shape;
     offsetX = _offsetX;
     offsetY = _offsetY;
 }
 public AddClassCommand(ObservableCollection<ShapeViewModel> _shapes, ShapeViewModel _shape)
 {
     shapes = _shapes;
     shape = _shape;
 }