private void UpdateSizePositionWithMovement(Transform2D sender, TransformMovedEventArgs args) { this.Size = new Rectangle((int)this.Position.X, (int)this.Position.Y, this.Size.Width, this.Size.Height); }
private void MoveWithParent(Transform2D sender, TransformMovedEventArgs args) { this.Position -= args.Movement; }