コード例 #1
0
        /// <summary>
        /// Converts an array of projects from webservice type to this type.
        /// </summary>
        /// <param name="projectData">Project data.</param>
        /// <returns>An array of projects in this class type.</returns>
		internal static Project[] ConvertArray( MantisConnectWebservice.ProjectData[] projectData )
		{
            if (projectData == null)
            {
                return null;
            }

			Project[] projects = new Project[projectData.Length];

            for (int i = 0; i < projectData.Length; ++i)
            {
                projects[i] = new Project(projectData[i]);
            }

			return projects;
		}
コード例 #2
0
 /// <summary>
 /// Adds a project to the Mantis database.
 /// </summary>
 /// <param name="project">The project data, the project id is not required.</param>
 public void ProjectAdd(Project project)
 {
     this.mc.mc_project_add(
         this.session.Username,
         this.session.Password,
         project.ToWebservice());
 }