public City(int coudeCity) { CarTable ct = new CarTable(); this.dRow = ct.Find(coudeCity); if (this.dRow != null) { this.FillFields(); } else { throw new Exception("לא נמצאו שדות"); } }
public Car(string carNumber) { CarTable cr = new CarTable(); this.dRow = cr.Find(carNumber); if (this.dRow != null) { this.FillFields(); } else { throw new Exception("לא נמצאו תוצאות"); } }