Inheritance: ProjectUser
コード例 #1
0
ファイル: ProjectManager.cs プロジェクト: chartly/flood
        /// <summary>
        /// Creates a new project of the given type and name and adds
        /// it to the list.
        /// </summary>
        /// <returns>Returns a new project of this type.</returns>
        public async Task<Project> CreateProject(ProjectType type, string name, Owner founder)
        {
            var project = new Project(type, name, System.Guid.NewGuid(), founder);

            AddProject(project);

            return project;
        }
コード例 #2
0
ファイル: Project.cs プロジェクト: akumetsuv/flood
 public Project(ProjectType type, string name, Guid id, Owner founder)
 {
     Type = type;
     Name = name;
     DateCreated = System.DateTime.Now;
     Id = id;
     Users = new Dictionary<Guid, ProjectUser>();
     Users[founder.Id] = founder;
 }