internal void Initialize(ProjectView projectView)
 {
     if (isCustomColumn)
     {
         customColumn = projectView.GetCustomColumn(customColumnName);
         if (customColumn == null)
         {
             throw new ArgumentException("Could not find custom column:" + customColumnName);
         }
     }
 }
示例#2
0
        // 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);
            }
        }
示例#3
0
        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, "");
        }