Лабораторная работа №1
This commit is contained in:
parent
cb18d4e7c2
commit
2b073c8fbc
@ -106,8 +106,14 @@ public class DrawningAirbus
|
||||
_startPosX = x;
|
||||
_startPosY = y;
|
||||
|
||||
if (_startPosX + _drawningAirbusWidth > _pictureWidth.Value) { _startPosX = 0; }
|
||||
if (_startPosY + _drawningAirbusHeight > _pictureHeight.Value) { _startPosY = 0; }
|
||||
if (_startPosX + _drawningAirbusWidth > _pictureWidth.Value)
|
||||
{
|
||||
_startPosX = _pictureWidth.Value - _drawningAirbusWidth;
|
||||
}
|
||||
if (_startPosY + _drawningAirbusHeight > _pictureHeight.Value)
|
||||
{
|
||||
_startPosY = _pictureHeight.Value - _drawningAirbusHeight;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user