Esempio n. 1
0
        private void frmAddActivity_Load(object sender, EventArgs e)
        {
            _users             = UserLogic.GetCommitteMembers();
            _usersAutoComplete = new AutoCompleteStringCollection();
            InitializeAutoComplete();
            LoadTeams();
            this.cboTeam.SelectedValueChanged += new System.EventHandler(this.cboTeam_SelectedValueChanged);

            if (_activityToUpdate != null)
            {
                _usersToActivity = ActivityLogic.GetActivityMembers(_activityToUpdate);
                ShowActivityUsers();

                txtName.Text          = _activityToUpdate.Name;
                txtDescription.Text   = _activityToUpdate.Description;
                dtpDeadlineDate.Value = _activityToUpdate.Deadline.Value;
                dtpDeadlineTime.Value = _activityToUpdate.Deadline.Value;

                cboTeam.SelectedValue    = _activityToUpdate.TeamId;
                cboProject.SelectedValue = _activityToUpdate.ProjectId;
            }
            else
            {
                _usersToActivity = new List <User>();
            }
        }