private void PopulateList() { List <ToDoItem> todos = ToDoItemData.GetToDoItems(); TODOs.DataSource = todos; TODOs.DataBind(); }
/// <summary> /// Prunes the to-do list if necessary and binds it to the TODOs repeater. /// </summary> private void BindListToDisplay() { if (ListToDisplay == null) { PruneList(); } TODOs.DataSource = ListToDisplay; TODOs.DataBind(); }