Exemplo n.º 1
0
 internal override object Execute(WorkspaceModel workspaceModel, bool events = true)
 {
     if (OldWidth.Equals(NewWidth) && OldHeight.Equals(NewHeight))
     {
         return(false);
     }
     Model.Width  = NewWidth;
     Model.Height = NewHeight;
     workspaceModel.OnChildSizeChanged(Model, OldWidth, NewWidth, OldHeight, NewHeight);
     return(true);
 }
Exemplo n.º 2
0
 internal override void Undo(WorkspaceModel workspaceModel)
 {
     Model.Width  = OldWidth;
     Model.Height = OldHeight;
     workspaceModel.OnChildSizeChanged(Model, NewWidth, OldWidth, NewHeight, OldHeight);
 }