private void TaskGrid_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (tasklist == null) return; taskindex = e.RowIndex; task = tasks[taskindex]; }
/// <summary> /// Deprecated Method for adding a new object to the Tasks EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTasks(Task task) { base.AddObject("Tasks", task); }
/// <summary> /// Create a new Task object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="taskListID">Initial value of the TaskListID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="complete">Initial value of the Complete property.</param> /// <param name="created">Initial value of the Created property.</param> /// <param name="lastModified">Initial value of the LastModified property.</param> public static Task CreateTask(global::System.Guid id, global::System.Guid taskListID, global::System.String name, global::System.Boolean complete, global::System.DateTime created, global::System.DateTime lastModified) { Task task = new Task(); task.ID = id; task.TaskListID = taskListID; task.Name = name; task.Complete = complete; task.Created = created; task.LastModified = lastModified; return task; }