Лабораторная работа №1

This commit is contained in:
vasmaae 2024-02-25 04:26:04 +04:00
parent 2b073c8fbc
commit 620c166dcc

View File

@ -73,8 +73,6 @@ public class DrawningAirbus
_pictureHeight = height; _pictureHeight = height;
if (_startPosX != null && _startPosY != null) if (_startPosX != null && _startPosY != null)
{ {
if (_startPosX.Value < 0) _startPosX = 0;
if (_startPosY.Value < 0) _startPosY = 0;
if (_startPosX.Value + _drawningAirbusWidth > _pictureWidth) if (_startPosX.Value + _drawningAirbusWidth > _pictureWidth)
{ {
_startPosX = _pictureWidth - _drawningAirbusWidth; _startPosX = _pictureWidth - _drawningAirbusWidth;