feat: Better car creation
This commit is contained in:
@@ -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) =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user