public void Execute(object parameter)
            {
                ToDoList.Clear();
                List <PostIt> toDoPostits = PersistenceHandler.LoadTodoList();

                foreach (var postIt in toDoPostits)
                {
                    ToDoList.Add(postIt);
                }

                DoingList.Clear();
                List <PostIt> doingPostits = PersistenceHandler.LoadDoingList();

                foreach (var postIt in doingPostits)
                {
                    DoingList.Add(postIt);
                }

                DoneList.Clear();
                List <PostIt> donePostits = PersistenceHandler.loadDoneList();

                foreach (var postIt in donePostits)
                {
                    DoneList.Add(postIt);
                }
            }
Example #2
0
 public void Doing_List()
 {
     using (moyEntities db = new moyEntities())
     {
         int          userid = Convert.ToInt32(Session["Id"]);
         List <Doing> doing  = db.Doings.Where(a => a.UserId == userid).OrderBy(a => a.Doing1).ToList();
         DoingList.DataSource     = doing;
         DoingList.DataTextField  = "Doing1";
         DoingList.DataValueField = "Id";
         DoingList.DataBind();
     }
 }