示例#1
0
        public static void DeleteTaskWithRelations(Tasks task)
        {
            List <LableTask> relationsToDestroy = DataLableTask.ReturnRelationsOfTask(task);

            foreach (LableTask x in relationsToDestroy)
            {
                DataLableTask.DeleteLableTask(x);
            }
            DataTask.DeleteTask(task);
        }
示例#2
0
 public LableTask(Lable person, Tasks task)
 {
     lable_id = person.lable_id;
     task_id  = task.task_id;
     DataLableTask.AddLableTask(this);
 }