Esempio n. 1
0
        public City(int coudeCity)
        {
            CarTable ct = new CarTable();

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

            this.dRow = cr.Find(carNumber);
            if (this.dRow != null)
            {
                this.FillFields();
            }
            else
            {
                throw new Exception("לא נמצאו תוצאות");
            }
        }