Beispiel #1
0
 public Car()
 {
     Mark         = "";
     Model        = "";
     Country      = "";
     Category     = new AutoCategoryClass();
     Transmission = "";
     Fuel         = "";
     FuelPerHour  = 0;
     SumLease     = 0;
     CarCount     = 0;
     Copies       = new List <AutoCopy>(CarCount);
     Description  = "";
     AutoPhoto    = null;
     CarNumber    = 0;
 }
Beispiel #2
0
 public Car(String mark, String model, String country, AutoCategoryClass category, String transmission, String fuel, double fuelPerHour,
            double sumLease, int carCount, String description, Image autoPhoto, int carNumber)
 {
     Mark         = mark;
     Model        = model;
     Country      = country;
     Category     = category;
     Transmission = transmission;
     Fuel         = fuel;
     FuelPerHour  = fuelPerHour;
     SumLease     = sumLease;
     CarCount     = carCount;
     Description  = description;
     AutoPhoto    = autoPhoto;
     CarNumber    = carNumber;
     Copies       = new List <AutoCopy>(carCount);
 }