PIbd-14_Calimullin_A.R._Lab03_Simple #3

Closed
Bloody_Arthur wants to merge 3 commits from Lab03 into Lab02
Showing only changes of commit 9daa025f96 - Show all commits

View File

@ -21,6 +21,7 @@ public class AirCraftAngar : AbstractCompany
/// </summary>
/// <param name="g">Графика</param>
int pamat_i = 0;
int pamat_j = 0;
protected override void DrawBackgound(Graphics g)
{
Pen pen = new(Color.Black, 4);
@ -29,6 +30,7 @@ public class AirCraftAngar : AbstractCompany
pamat_i = i;
for (int j = 0; j < _pictureHeight / _placeSizeHeight; j++)
{
pamat_j = j;
g.DrawLine(pen, new(_placeSizeWidth * i, _placeSizeHeight * j), new((int)(_placeSizeWidth * (i + 0.5f)), _placeSizeHeight * j));
g.DrawLine(pen, new(_placeSizeWidth * i, _placeSizeHeight * j), new(_placeSizeWidth * i, _placeSizeHeight * (j + 1)));
}
@ -43,7 +45,7 @@ public class AirCraftAngar : AbstractCompany
protected override void SetObjectsPosition()
{
int currentIndex = -1;
for (int j = 0 ; j < _pictureHeight / _placeSizeHeight; j++)
for (int j = pamat_j; j >= 0; j--)
{
for (int i = pamat_i; i >= 0; i--)
{