Exemple #1
0
        private void Add(DriverCar drCar)
        {
            if ((drCar.Driver == null) || (drCar.Car == null))
                return;

            if (list.Exists(item => item == drCar))
                return;

            list.Add(drCar);
        }
Exemple #2
0
        protected override void loadFromSql()
        {
            DataTable dt = _provider.Select("DriverCar");

            foreach (DataRow row in dt.Rows)
            {
                DriverCar drCar = new DriverCar(row);
                Add(drCar);
            }
        }