public void Add(CarDoc carDoc) { if (list.Exists(item => item == carDoc)) return; list.Add(carDoc); }
protected override void loadFromSql() { DataTable dt = _provider.Select("CarDoc"); foreach (DataRow row in dt.Rows) { CarDoc carDoc = new CarDoc(row); Add(carDoc); } }
public CarDoc_AddEdit(CarDoc carDoc) { InitializeComponent(); _carDoc = carDoc; }