public static void DeleteTaskWithRelations(Tasks task) { List <LableTask> relationsToDestroy = DataLableTask.ReturnRelationsOfTask(task); foreach (LableTask x in relationsToDestroy) { DataLableTask.DeleteLableTask(x); } DataTask.DeleteTask(task); }
public LableTask(Lable person, Tasks task) { lable_id = person.lable_id; task_id = task.task_id; DataLableTask.AddLableTask(this); }