правки

This commit is contained in:
Evgeny Egov 2024-01-06 17:36:56 +04:00
parent cef51e6738
commit 1358d1f969
Failed to extract signature
2 changed files with 10 additions and 0 deletions

View File

@ -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)
{ {
} }

View File

@ -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)),