public void Add(Repair repair) { if (list.Exists(item => item == repair)) return; list.Add(repair); }
protected override void loadFromSql() { DataTable dt = _provider.Select("Repair"); foreach (DataRow row in dt.Rows) { Repair repair = new Repair(row); Add(repair); } }
public Repair_AddEdit(Repair repair) { InitializeComponent(); _repair = repair; }