правки
This commit is contained in:
parent
cef51e6738
commit
1358d1f969
@ -2,8 +2,17 @@
|
|||||||
|
|
||||||
namespace ProjectSportCar.CollectionGenericObjects;
|
namespace ProjectSportCar.CollectionGenericObjects;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Реализация абстрактной компании - каршеринг
|
||||||
|
/// </summary>
|
||||||
public class CarSharingService : AbstractCompany
|
public class CarSharingService : AbstractCompany
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Конструктор
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="picWidth"></param>
|
||||||
|
/// <param name="picHeight"></param>
|
||||||
|
/// <param name="collection"></param>
|
||||||
public CarSharingService(int picWidth, int picHeight, ICollectionGenericObjects<DrawningCar> collection) : base(picWidth, picHeight, collection)
|
public CarSharingService(int picWidth, int picHeight, ICollectionGenericObjects<DrawningCar> collection) : base(picWidth, picHeight, collection)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -69,6 +69,7 @@ public partial class FormCarCollection : Form
|
|||||||
drawningCar = new DrawningCar(random.Next(100, 300), random.Next(1000, 3000), GetColor(random));
|
drawningCar = new DrawningCar(random.Next(100, 300), random.Next(1000, 3000), GetColor(random));
|
||||||
break;
|
break;
|
||||||
case nameof(DrawningSportCar):
|
case nameof(DrawningSportCar):
|
||||||
|
// TODO вызов диалогового окна для выбора цвета
|
||||||
drawningCar = new DrawningSportCar(random.Next(100, 300), random.Next(1000, 3000),
|
drawningCar = new DrawningSportCar(random.Next(100, 300), random.Next(1000, 3000),
|
||||||
Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)),
|
Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)),
|
||||||
Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)),
|
Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)),
|
||||||
|
Loading…
Reference in New Issue
Block a user