Пример #1
0
 private void TaskListGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     tasklistindex = e.RowIndex;
     if (tasklistindex < 0)
         return;
     tasklist = tasklists[tasklistindex];
     tasks = tasklist.Tasks.ToList();
     TaskGrid.DataSource = tasks;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the TaskLists EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTaskLists(TaskList taskList)
 {
     base.AddObject("TaskLists", taskList);
 }
Пример #3
0
 /// <summary>
 /// Create a new TaskList object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="listTypeID">Initial value of the ListTypeID property.</param>
 /// <param name="userID">Initial value of the UserID property.</param>
 /// <param name="template">Initial value of the Template property.</param>
 public static TaskList CreateTaskList(global::System.Guid id, global::System.String name, global::System.Guid listTypeID, global::System.Guid userID, global::System.Boolean template)
 {
     TaskList taskList = new TaskList();
     taskList.ID = id;
     taskList.Name = name;
     taskList.ListTypeID = listTypeID;
     taskList.UserID = userID;
     taskList.Template = template;
     return taskList;
 }