public void DefaultFromTemplate(PMProject project, int?templateId,
                                 ProjectEntry.DefaultFromTemplateSettings settings,
                                 Action <PMProject, int?, ProjectEntry.DefaultFromTemplateSettings> baseHandler)
 {
     baseHandler(project, templateId, settings);
     UpdateThroughDateSourceFieldsFromTemplate(project, templateId);
     InsertRecipientsFromTemplate(project, templateId);
 }
Ejemplo n.º 2
0
        public virtual PMTask CopyTask(PMTask originalTask, int projectId,
                                       ProjectEntry.DefaultFromTemplateSettings settings,
                                       Func <PMTask, int, ProjectEntry.DefaultFromTemplateSettings, PMTask> baseHandler)
        {
            var targetTask = baseHandler(originalTask, projectId, settings);

            targetTask.Type = originalTask.Type;
            return(targetTask);
        }