internal PlayerDataRowEntry(PlayerDataHistory dataHistory, long playerId)
 {
     DataHistory = dataHistory;
     PlayerId = playerId;
 }
        /// <summary>
        /// Preloads the player info, if in update mode.
        /// </summary>
        private void PreloadDatabaseInfo()
        {
            if (editMode == EditMode.Create)
            {
                team = database.LoadCurrentTeam(teamDescriptor);
            }

            if (playerId != -1)
            {
                player = database.LoadPlayer(playerId);
                dataHistory = database.GetCurrentHistory(player);

                txtFirstName.Text = player.FirstName;
                txtLastName.Text = player.LastName;
                datePicker.Value = player.Birthday;
                cbxCountries.SelectedItem = appConfig.GetByCode(player.Country);
            }
        }