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(); }
private void AddPosition() { _poclog.Add(ThePosition); CancelProperties(); RefreshCollection(); }