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); }
internal override void Undo(WorkspaceModel workspaceModel) { Model.Width = OldWidth; Model.Height = OldHeight; workspaceModel.OnChildSizeChanged(Model, NewWidth, OldWidth, NewHeight, OldHeight); }