public static XElement BuildStatus(ProjectStatus status)
        {
            PageDocument.StatusColor color;

            switch (status)
            {
            case ProjectStatus.Active:
                color = PageDocument.StatusColor.Green;
                break;

            case ProjectStatus.Normal:
                color = PageDocument.StatusColor.Blue;
                break;

            case ProjectStatus.Legacy:
                color = PageDocument.StatusColor.Red;
                break;

            default:
                color = PageDocument.StatusColor.Grey;
                break;
            }

            return(PageDocument.BuildStatus(status.ToString(), color, false));
        }
		public static XElement BuildStatus(ProjectStatus status)
		{
			PageDocument.StatusColor color;

			switch (status)
			{
				case ProjectStatus.Active:
					color = PageDocument.StatusColor.Green;
					break;

				case ProjectStatus.Normal:
					color = PageDocument.StatusColor.Blue;
					break;

				case ProjectStatus.Legacy:
					color = PageDocument.StatusColor.Red;
					break;

				default:
					color = PageDocument.StatusColor.Grey;
					break;
			}

			return PageDocument.BuildStatus(status.ToString(), color, false);
		}
Example #3
0
 public static string ReadValueForProjectStatus(ProjectStatus projecStatus)
 {
     return(projecStatus.ToString());
 }
 private static ProjectStatusEnum ParseFBStatus(ProjectStatus status)
 {
     ProjectStatusEnum enumRes;
     return Enum.TryParse(status.ToString(), out enumRes) ? enumRes : ProjectStatusEnum.Failure;
 }