public void AddTemplate(ProjectTaskTemplate projectTaskTemplate) { if (FindTemplate(projectTaskTemplate) != null) { throw new Exception("Template " + projectTaskTemplate + "already exists in templates"); } Templates.Add(projectTaskTemplate); }
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); }
public void RemoveTemplate(ProjectTaskTemplate projectTaskTemplate) { RemoveTemplate(projectTaskTemplate.Guid); }
public ProjectTaskTemplate FindTemplate(ProjectTaskTemplate projectTaskTemplate) { return(FindTemplate(projectTaskTemplate.Guid)); }