Правки.
This commit is contained in:
parent
fb1f7abf5c
commit
c8545fdb07
@ -17,7 +17,7 @@ namespace ProjectElectricLocomotive.DrawingObjects
|
|||||||
/// <param name="width">Ширина</param>
|
/// <param name="width">Ширина</param>
|
||||||
/// <param name="height">Высота</param>
|
/// <param name="height">Высота</param>
|
||||||
/// <returns>Объект</returns>
|
/// <returns>Объект</returns>
|
||||||
public static DrawingLocomotive? CreateDrawningCar(this string info, char
|
public static DrawingLocomotive? CreateDrawningLocomotive(this string info, char
|
||||||
separatorForObject, int width, int height)
|
separatorForObject, int width, int height)
|
||||||
{
|
{
|
||||||
string[] strs = info.Split(separatorForObject);
|
string[] strs = info.Split(separatorForObject);
|
||||||
|
@ -169,9 +169,9 @@ namespace ProjectElectricLocomotive.Generics
|
|||||||
}
|
}
|
||||||
LocomotivesGenericCollection<DrawingLocomotive, DrawingObjectLocomotive> collection = new(_pictureWidth, _pictureHeight);
|
LocomotivesGenericCollection<DrawingLocomotive, DrawingObjectLocomotive> collection = new(_pictureWidth, _pictureHeight);
|
||||||
string[] set = record[1].Split(_separatorRecords, StringSplitOptions.RemoveEmptyEntries);
|
string[] set = record[1].Split(_separatorRecords, StringSplitOptions.RemoveEmptyEntries);
|
||||||
foreach (string thing in set)
|
foreach (string elem in set)
|
||||||
{
|
{
|
||||||
DrawingLocomotive? loco = thing?.CreateDrawingLocomotive(_separatorForObject, _pictureWidth, _pictureHeight);
|
DrawingLocomotive? loco = elem?.CreateDrawningLocomotive(_separatorForObject, _pictureWidth, _pictureHeight);
|
||||||
if (loco != null)
|
if (loco != null)
|
||||||
{
|
{
|
||||||
if ((collection + loco) == -1)
|
if ((collection + loco) == -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user