Borschevskaya A.A. Lab Work 6 #6

Closed
pgirl1 wants to merge 10 commits from lab6 into lab5
2 changed files with 8 additions and 0 deletions
Showing only changes of commit e778b6b060 - Show all commits

View File

@ -33,5 +33,8 @@ namespace ArmoredCar
if (_armCar != null)
_armCar.DrawTransport(g);
}
public string GetInfo() => _armCar?.GetDataForSave();
public static IDrawningObject Create(string data) => new
DrawningObjectArmCar(data.CreateDrawningArmoredCar());
}
}

View File

@ -36,5 +36,10 @@ namespace ArmoredCar
/// </summary>
/// <returns></returns>
(float Left, float Right, float Top, float Bottom) GetCurrentPosition();
/// <summary>
/// Получение информации по объекту
/// </summary>
/// <returns></returns>
string GetInfo();
}
}