public void Delete(int id) { clAnswer answed = getItem(id); list.Remove(answed); answed.Delete(); }
private void LoadFromSql() { list.Clear(); Sql sql1 = new Sql(); DataTable dt = sql1.GetRecords("exec Answer_Select"); foreach (DataRow row in dt.Rows) { clAnswer answed = new clAnswer(row); Add(answed); } }
public void Add(clAnswer answed) { list.Add(answed); }
private void LoadFromSql() { list.Clear(); sql sql1 = new sql(); DataTable dt = sql1.GetRecords("exec Answer_Select"); foreach (DataRow row in dt.Rows) { clAnswer answed = new clAnswer(row); Add(answed); } }