public void createTask(int countObject, string nameTask) { initContainers(countObject); _task = new task(); _task.ntest = _test.nid; _task.tname = nameTask; _task.nid = getTaskId(); }
partial void Deletetask(task instance);
partial void Updatetask(task instance);
partial void Inserttask(task instance);
private void detach_task(task entity) { this.SendPropertyChanging(); entity.test = null; }
private void attach_task(task entity) { this.SendPropertyChanging(); entity.test = this; }
public void openTaskChange(string taskName) { System.Collections.IEnumerator enumeratorTask = context.task.GetEnumerator(); System.Collections.IEnumerator enumeratorLinks = context.links.GetEnumerator(); List<links> listLinks = new List<links>(); while (enumeratorTask.MoveNext()) { task curentTask = (task)enumeratorTask.Current; if (curentTask.tname.CompareTo(taskName) == 0) { _task = curentTask; while (enumeratorLinks.MoveNext()) { links curentLinks = (links)enumeratorLinks.Current; if (curentLinks.task.tname.CompareTo(curentTask.tname) == 0) { listLinks.Add(curentLinks); } } } } initContainers(listLinks.Count / 2); }