コード例 #1
0
        public void AddTemplate(ProjectTaskTemplate projectTaskTemplate)
        {
            if (FindTemplate(projectTaskTemplate) != null)
            {
                throw new Exception("Template " + projectTaskTemplate + "already exists in templates");
            }

            Templates.Add(projectTaskTemplate);
        }
コード例 #2
0
 private void TemplateChanged(ProjectTaskTemplate newTemplate)
 {
     taskTitle.Text       = newTemplate.TaskTitle;
     rdMin.Value          = Math.Round(newTemplate.TaskResearchMinMax.MinHours, 2);
     rdMax.Value          = Math.Round(newTemplate.TaskResearchMinMax.MaxHours, 2);
     developmentMin.Value = Math.Round(newTemplate.TaskDevelopmentMinMax.MinHours, 2);
     developmentMax.Value = Math.Round(newTemplate.TaskDevelopmentMinMax.MaxHours, 2);
     qaMin.Value          = Math.Round(newTemplate.TaskQAMinMax.MinHours, 2);
     qaMax.Value          = Math.Round(newTemplate.TaskQAMinMax.MaxHours, 2);
 }
コード例 #3
0
 public void RemoveTemplate(ProjectTaskTemplate projectTaskTemplate)
 {
     RemoveTemplate(projectTaskTemplate.Guid);
 }
コード例 #4
0
 public ProjectTaskTemplate FindTemplate(ProjectTaskTemplate projectTaskTemplate)
 {
     return(FindTemplate(projectTaskTemplate.Guid));
 }