feat: Better car creation

This commit is contained in:
2026-02-24 08:57:47 +01:00
parent 4404ac3c7b
commit f6b70fa387
7 changed files with 71 additions and 20 deletions

View File

@@ -135,7 +135,7 @@ namespace CarManagerV3
private void btnNewCar_Click(object sender, EventArgs e)
{
Car foocar = StateManager.CreateCar("New", "Car", 2020, "White", 0, 20000);
Car foocar = new Car(0, "New", "Car", 2020, "White", 0, 20000);
CarDetailsForm detailsForm = new CarDetailsForm(foocar);
detailsForm.FormClosed += (s2, e2) =>
{