fix: Update instead of re-fill

This commit is contained in:
Frozd
2025-11-28 12:09:07 +01:00
parent cca7c37ffe
commit 746f8c4039
4 changed files with 84 additions and 5 deletions

View File

@@ -54,7 +54,12 @@ namespace CarManagerV2
public bool IsChanged(Car other)
{
return make != other.make || model != other.model || year != other.year || color != other.color || mileage != other.mileage || price != other.price;
return make != other.make || model != other.model || year != other.year || color != other.color || mileage != other.mileage || price != other.price || other.color != color;
}
public Car Clone()
{
return new Car(id, make, model, year, color, mileage, price);
}
}
}