Exemple #1
0
 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()
     });
Exemple #2
0
 public void Assign(DocumentProperties startupProperties)
 {
     // todo
     Width  = startupProperties.Width;
     Height = startupProperties.Height;
 }