Слетевшая 7 лаба готова
This commit is contained in:
parent
72081a1e24
commit
beb7bdf552
@ -13,11 +13,9 @@
|
||||
<PackageReference Include="EntityFramework.ru" Version="6.2.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.0" />
|
||||
<PackageReference Include="Serilog" Version="3.1.1" />
|
||||
<PackageReference Include="Serilog.Extensions.Logging" Version="7.0.0" />
|
||||
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.1" />
|
||||
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
|
||||
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.0" />
|
||||
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
|
@ -85,9 +85,12 @@ public abstract class AbstractCompany
|
||||
DrawBackgound(graphics);
|
||||
SetObjectsPosition();
|
||||
for (int i = 0; i < (_collection?.Count ?? 0); ++i)
|
||||
{
|
||||
try
|
||||
{
|
||||
DrawningGun? obj = _collection?.Get(i);
|
||||
obj?.DrawTransport(graphics);
|
||||
}catch(Exception ) { }
|
||||
}
|
||||
return bitmap;
|
||||
}
|
||||
|
@ -45,7 +45,8 @@ public class GunSharingService : AbstractCompany
|
||||
int boarderOffsetY = 10;
|
||||
|
||||
int currentIndex = -1;
|
||||
|
||||
try
|
||||
{
|
||||
for (int j = 0; j < maxCountY; j++)
|
||||
{
|
||||
for (int i = 0; i < maxCountX; i++)
|
||||
@ -59,5 +60,7 @@ public class GunSharingService : AbstractCompany
|
||||
}
|
||||
}
|
||||
}
|
||||
}catch (Exception ) { }
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user