фикс 1.1

This commit is contained in:
repka228 2024-12-21 04:49:51 +04:00
parent 302d9ff554
commit b1cf72ff0b

View File

@ -9,7 +9,7 @@ namespace ProjectRacing.Forms
private readonly IJockeyRepository _jockeyRepository;
private int? _participantsId;
private int? _competitionId;
public int CompetitionID
public int ID
{
set
{
@ -23,19 +23,6 @@ namespace ProjectRacing.Forms
textBoxNameOfCompetition.Text = competition.Name;
dateTimePickerDateOfCompetition.Text = competition.DateOfCompetitions.ToString();
_competitionId = value;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Ошибка при получении данных", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
public int ParticipantsID
{
set
{
try
{
var participants = _participantsRepository.GetParticipantsById(value);
if (participants == null)
{