Inheritance: IProject
Exemplo n.º 1
0
 /// <summary>
 /// Store modified project in the database
 /// </summary>
 private void UpdateDatabase(Project proj)
 {
     try
     {
         database.Store(proj, proj.Id);
         databaseModified = true;
     }
     catch (SessionNotOpenException sessionNotOpenException)
     {
     }
 }
Exemplo n.º 2
0
 void OnProjectRemoved(object sender, Project project)
 {
     RemoveProjectNode(project.Name);
 }
Exemplo n.º 3
0
 void OnProjectAdded(object sender, Project project)
 {
     CreateProjectNode(project.Name);
 }
Exemplo n.º 4
0
 public Owner(User sysUser, Project proj)
     : base(sysUser, proj)
 {
     UserPermissions = new Permissions();
     UserPermissions.OwnerPermissions();
 }
Exemplo n.º 5
0
        /// <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;
        }
Exemplo n.º 6
0
        /// <summary>
        /// Adds a new project.
        /// </summary>
        /// <remarks>Invokes the ProjectAdded event.</remarks>
        private void AddProject(Project project)
        {
            if (project == null)
                return;

            projects.Add(project.Id, project);
            ProjectAdded(this, project);
            UpdateDatabase(project);
        }
Exemplo n.º 7
0
 /// <summary>
 /// Store modified project in the database
 /// </summary>
 private void UpdateDatabase(Project proj)
 {
    
 }
Exemplo n.º 8
0
 protected ProjectUser(User sysUser, Project proj)
 {
     SystemUser = sysUser;
     Proj = proj;
 }