Exemplo n.º 1
0
 public Tasks(string task_name, int task_order, int column_id)
 {
     this.task_name  = task_name.Trim();
     this.task_order = task_order;
     this.column_id  = column_id;
     DataTask.AddTask(this);
 }
Exemplo n.º 2
0
        public static void DeleteTaskWithRelations(Tasks task)
        {
            List <LableTask> relationsToDestroy = DataLableTask.ReturnRelationsOfTask(task);

            foreach (LableTask x in relationsToDestroy)
            {
                DataLableTask.DeleteLableTask(x);
            }
            DataTask.DeleteTask(task);
        }