Exemplo n.º 1
0
        private void PopulateList()
        {
            List <ToDoItem> todos = ToDoItemData.GetToDoItems();

            TODOs.DataSource = todos;
            TODOs.DataBind();
        }
Exemplo n.º 2
0
 /// <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();
 }