示例#1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            Position p = new Position();

            p.Name        = txtName.Text;
            p.Description = txtDescription.Text;
            p.TeamId      = int.Parse(cboTeam.SelectedValue.ToString());
            p.RoleId      = int.Parse(cboRole.SelectedValue.ToString());
            if (_positionToUpdate == null)
            {
                PositionLogic.Add(p);
            }
            else
            {
                PositionLogic.Update(_positionToUpdate, p);
            }
            Close();
        }
示例#2
0
 private void AddPosition()
 {
     _poclog.Add(ThePosition);
     CancelProperties();
     RefreshCollection();
 }