From b1cf72ff0b5e542d78c3af3a9e0530abe97a88a1 Mon Sep 17 00:00:00 2001 From: repka228 <54245562+repka228@users.noreply.github.com> Date: Sat, 21 Dec 2024 04:49:51 +0400 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=201.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Forms/Competitions/FormCompetition.cs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/ProjectRacing/Forms/Competitions/FormCompetition.cs b/ProjectRacing/Forms/Competitions/FormCompetition.cs index 083dfa8..95dc914 100644 --- a/ProjectRacing/Forms/Competitions/FormCompetition.cs +++ b/ProjectRacing/Forms/Competitions/FormCompetition.cs @@ -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) {