Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Project"/> class.
 /// </summary>
 /// <param name="projectId">The project id.</param>
 /// <param name="imageContent">Content of the image.</param>
 /// <param name="imageFileName">Name of the image file.</param>
 /// <param name="imageFileLength">Length of the image file.</param>
 /// <param name="imageContentType">Type of the image content.</param>
 //public Project(int projectId,byte[] imageContent, string imageFileName, long imageFileLength, string imageContentType)
 //{
 //    _ImageContent = imageContent;
 //    _ImageFileName = imageFileName;
 //    _ImageFileLength = imageFileLength;
 //    _ImageContentType = imageContentType;
 //}
 /// <summary>
 /// Initializes a new instance of the <see cref="Project"/> class.
 /// </summary>
 /// <param name="projectId">The project id.</param>
 /// <param name="name">The name.</param>
 /// <param name="code">The code.</param>
 /// <param name="description">The description.</param>
 /// <param name="managerUserName">Name of the manager user.</param>
 /// <param name="managerDisplayName">Display name of the manager.</param>
 /// <param name="creatorUserName">Name of the creator user.</param>
 /// <param name="creatorDisplayName">Display name of the creator.</param>
 /// <param name="uploadPath">The upload path.</param>
 /// <param name="accessType">Type of the access.</param>
 /// <param name="disabled">if set to <c>true</c> [disabled].</param>
 /// <param name="allowAttachments">if set to <c>true</c> [allow attachments].</param>
 /// <param name="attachmentStorageType">Type of the attachment storage.</param>
 /// <param name="svnRepositoryUrl">The SVN repository URL.</param>
 /// <param name="allowIssueVoting">if set to <c>true</c> [allow issue voting].</param>
 /// <param name="imageContent">Content of the image.</param>
 /// <param name="imageFileName">Name of the image file.</param>
 /// <param name="imageFileLength">Length of the image file.</param>
 /// <param name="imageContentType">Type of the image content.</param>
 public Project(int projectId, string name, string code, string description, string managerUserName, string managerDisplayName, string creatorUserName, string creatorDisplayName, string uploadPath, Globals.ProjectAccessType accessType, bool disabled, bool allowAttachments,
     IssueAttachmentStorageType attachmentStorageType, string svnRepositoryUrl, bool allowIssueVoting, ProjectImage projectImage)
     : this(projectId, name, code, description, managerUserName, managerDisplayName, creatorUserName, creatorDisplayName, uploadPath, DateTime.Now, accessType, disabled, allowAttachments, Guid.Empty, attachmentStorageType, svnRepositoryUrl, allowIssueVoting, projectImage)
 {
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Project"/> class.
        /// </summary>
        /// <param name="projectId">The project id.</param>
        /// <param name="name">The name.</param>
        /// <param name="code">The code.</param>
        /// <param name="description">The description.</param>
        /// <param name="managerUserName">Name of the manager user.</param>
        /// <param name="creatorUserName">Name of the creator user.</param>
        /// <param name="uploadPath">The upload path.</param>
        /// <param name="dateCreated">The date created.</param>
        /// <param name="accessType">Type of the access.</param>
        /// <param name="active">The active.</param>
        /// <param name="allowAttachments">if set to <c>true</c> [allow attachments].</param>
        public Project(int projectId, string name, string code, string description, string managerUserName, string managerDisplayName,
                string creatorUserName, string creatorDisplayName, string uploadPath, DateTime dateCreated, Globals.ProjectAccessType accessType,
                bool disabled, bool allowAttachments, Guid managerId, IssueAttachmentStorageType attachmentStorageType, string svnRepositoryUrl, bool allowIssueVoting,
                ProjectImage projectImage)
        {
            // Validate Mandatory Fields//
            if (name == null || name.Length == 0)
                throw (new ArgumentOutOfRangeException("name"));

            _Id = projectId;
            _Description = description;
            _Name = name;
            _Code = code;
            _ManagerUserName = managerUserName;
            _ManagerDisplayName = managerDisplayName;
            _ManagerId = managerId;
            _CreatorUserName = creatorUserName;
            _CreatorDisplayName = creatorDisplayName;
            _DateCreated = dateCreated;
            _UploadPath = uploadPath;
            _Disabled = disabled;
            _AccessType = accessType;
            _AllowAttachments = allowAttachments;
            _AttachmentStorageType = attachmentStorageType;
            _SvnRepositoryUrl = svnRepositoryUrl;
            _AllowIssueVoting = allowIssueVoting;
            _ProjectImage = projectImage;
        }