This commit is contained in:
Павел Путилин 2022-10-30 21:34:56 +04:00
parent d72ac4a556
commit 910d16250b
3 changed files with 3 additions and 6 deletions

View File

@ -46,7 +46,7 @@ namespace AirplaneWithRadar
Airplane = new EntityAirplane();
Airplane.Init(speed, weight, bodyColor);
DrawningPortholes = new();
DrawningPortholes.CountPortholes = 30;
DrawningPortholes.CountPortholes = 10;
}
/// <summary>
/// Установка позиции

View File

@ -12,10 +12,6 @@ namespace AirplaneWithRadar
public int CountPortholes
{
get
{
return (int)_countPortholes;
}
set
{
_countPortholes = (CountPortholes)(value);
@ -28,7 +24,7 @@ namespace AirplaneWithRadar
DrawPorthole(g, middle, _startPosY);
int left = middle - 5;
int right = middle + 5;
for (var i = 1; i <= CountPortholes / 4; i += 1)
for (var i = 1; i <= (int)_countPortholes / 4; i += 1)
{
DrawPorthole(g, left, _startPosY);
left -= 5;

View File

@ -164,6 +164,7 @@
this.comboBoxPortholes.Name = "comboBoxPortholes";
this.comboBoxPortholes.Size = new System.Drawing.Size(44, 23);
this.comboBoxPortholes.TabIndex = 8;
this.comboBoxPortholes.Text = "10";
//
// FormAirplane
//