private void frmTodoList_Load(object sender, EventArgs e) { dao = new ClsTodoDao(); string connection = dao.GetConnectionString(); dao.SetConnection(connection); LoadData(); }
public frmAddInfo(ClsTodoDao dao) { InitializeComponent(); this.dao = dao; }