예제 #1
0
        private IDataProividerResultTasksBase AddTaskToTasks(CLTask data, ITaskGroup tasks)
        {
            IDataProividerResultTasksBase result = new DataProviderResultTasks();
            ITaskGroup tasksCoppy = tasks.Clone();

            tasksCoppy.AddTask(data);
            result.data   = tasksCoppy;
            result.sucess = true;

            return(result);
        }
예제 #2
0
        private IDataProividerResultTasksBase SetTaskStatusInTasks(CLTask data, ITaskGroup tasks)
        {
            IDataProividerResultTasksBase result = new DataProviderResultTasks();
            ITaskGroup tasksCoppy = tasks.Clone();

            try
            {
                tasksCoppy.SetTask(data);
                result.data   = tasksCoppy;
                result.sucess = true;
            }
            catch (Exception error)
            {
                result.sucess = false;
                result.error  = error.Message;
            }
            return(result);
        }