code reduce 'ZoomBorder.cs'