public void data_recover(DataGridView a, List <Apteka> l) { foreach (DataGridViewRow row in a.Rows) { Apteka buf = new Apteka(); buf.ConvertToApteka(row); l.Add(buf); } }
public void data_update(DataGridView a, List <Apteka> l) { l.Clear(); foreach (DataGridViewRow row in a.Rows) { Apteka buf = new Apteka(); buf.ConvertToApteka(row); l.Add(buf); } }