public PushedState(DrawingContext context, PushedStateType type, Matrix matrix = default(Matrix)) { _level = context._currentLevel += 1; _context = context; _type = type; _matrix = matrix; }
public PushedState(DrawingContext context, PushedStateType type, Matrix matrix = default(Matrix)) { if (context._states is null) { throw new ObjectDisposedException(nameof(DrawingContext)); } _context = context; _type = type; _matrix = matrix; _level = context._currentLevel += 1; context._states.Push(this); }
public PushedState(DrawingContext context, PushedStateType type, Matrix matrix = default(Matrix)) { _context = context; _type = type; _matrix = matrix; _level = context._currentLevel += 1; context._states.Push(this); }