Exemplo n.º 1
0
        public EditProject(int projectID, StackPanel projectList)
        {
            InitializeComponent();
            this.projectList = projectList;
            project          = projectDAO.Read(projectID);

            if (project != null)
            {
                name.Text        = project.Name;
                description.Text = project.Description;
                deadline.Text    = project.DueDate.Date.ToString();

                projectUsers = projectDAO.GetProjectUsers(project.Id);

                foreach (User user in projectUsers)
                {
                    AddUserPicture(user);
                }
            }
            else
            {
                Close();
            }
        }