internal void Initialize(ProjectView projectView) { if (isCustomColumn) { customColumn = projectView.GetCustomColumn(customColumnName); if (customColumn == null) { throw new ArgumentException("Could not find custom column:" + customColumnName); } } }
// TODO: Move to the ColumnDefinition class (to be...) in the Behavior namespace private HPMProjectCustomColumnsColumn ResolveCustomColumn(ProjectView projectView, ColumnDefinition colDef) { HPMProjectCustomColumnsColumn customColumn = projectView.GetCustomColumn(colDef.CustomColumnName); if (customColumn == null) { throw new ArgumentException("Could not find custom column:" + colDef.CustomColumnName); } else { return(customColumn); } }
public override void Initialize() { project = HPMUtilities.FindProject(projectName); if (project == null) { throw new ArgumentException("Could not find project:" + projectName); } if (viewType == EHPMReportViewType.AgileBacklog) { projectView = project.ProductBacklog; } else { projectView = project.Schedule; } rankColumn = projectView.GetCustomColumn(columnName); if (rankColumn == null) { throw new ArgumentException("Could not find custom column:" + columnName); } DoRenumber(projectView, 1, ""); }