Esempio n. 1
0
 public Car(string model, Category category, string number, Driver driver)
 {
     Model       = model;
     Category    = category;
     CarNumber   = number;
     CarPassport = new CarPassport(driver, this);
 }
Esempio n. 2
0
 public Car(string model, string categor)
 {
     _model = model;
       Color = Color.Blue;
     _categor = categor;
     _carPassport=new CarPassport(this);
 }
Esempio n. 3
0
 public Car(string name, char category)
 {
     Model = name;
     Color = Color.Blue;
     Category = category;
     CarPassport = new CarPassport(this);
 }
Esempio n. 4
0
 public Car(string m, Categories c)
 {
     Model = m;
     if (c != Categories.A)
     {
         Category = c;
     }
     else
     {
         throw new Exception("Нельзя присвоить машине категорию А, категория А - для мотоциклов!");
     }
     CarPassport = new CarPassport(this);
 }
Esempio n. 5
0
 public Car(string model, char category)
 {
     Model       = model;
     Category    = category;
     CarPassport = new CarPassport(this);
 }
Esempio n. 6
0
 public Car(string model, char category)
 {
     Model = model;
     Categorie = category;
     CarPass = new CarPassport(this);
 }
Esempio n. 7
0
 public Car(string model, string category)
 {
     Model = model;
     Category = category;
     CarPassport = new CarPassport(this);
 }