Конец Lab03

This commit is contained in:
UndertakerDM 2024-03-23 20:01:14 +04:00
parent 188adc4d5b
commit ba4e2acc2d
2 changed files with 2 additions and 9 deletions

View File

@ -68,12 +68,6 @@ public class DrawningWarmlyShip2: DrawningWarmlyShip
//g.FillRectangle(bodybrush, _startPosX.Value + 100, _startPosY.Value, 30, 20);
//g.FillPolygon(bodybrush2, pointsWarmlyShip2);
_startPosX += 10;
_startPosY += 5;
/*base.DrawTransport(g);*/ //ЗАЧЕМ?
_startPosX -= 10;
_startPosY -= 5;
if (teplohod.FirstDack)
{
Brush bodybrush3 = new SolidBrush(Color.Yellow);

View File

@ -68,9 +68,8 @@ public partial class FormWarmlyShipCollection : Form
break;
case nameof(DrawningWarmlyShip2):
// TODO вызов диалогового окна для выбора цвета
drawningWarmlyShip = new DrawningWarmlyShip2(random.Next(100, 300), random.Next(1000, 3000),
Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)),
Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)),
drawningWarmlyShip = new DrawningWarmlyShip2(random.Next(100, 300), random.Next(1000, 3000), GetColor(random),
GetColor(random),
Convert.ToBoolean(random.Next(0, 2)), Convert.ToBoolean(random.Next(0, 2)), Convert.ToBoolean(random.Next(0, 2)));
break;
default: