public ImageDocument(DocumentProperties startupProperties) : base(new RawRectangleF(0, 0, startupProperties.Width, startupProperties.Height)) { Properties.Assign(startupProperties); History.RecordAction(new UndoableAction() { Name = "Document Created", Do = () => throw new InvalidOperationException(), Undo = () => throw new InvalidOperationException() });
public void Assign(DocumentProperties startupProperties) { // todo Width = startupProperties.Width; Height = startupProperties.Height; }