фикс 1.1
This commit is contained in:
parent
302d9ff554
commit
b1cf72ff0b
@ -9,7 +9,7 @@ namespace ProjectRacing.Forms
|
|||||||
private readonly IJockeyRepository _jockeyRepository;
|
private readonly IJockeyRepository _jockeyRepository;
|
||||||
private int? _participantsId;
|
private int? _participantsId;
|
||||||
private int? _competitionId;
|
private int? _competitionId;
|
||||||
public int CompetitionID
|
public int ID
|
||||||
{
|
{
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
@ -23,19 +23,6 @@ namespace ProjectRacing.Forms
|
|||||||
textBoxNameOfCompetition.Text = competition.Name;
|
textBoxNameOfCompetition.Text = competition.Name;
|
||||||
dateTimePickerDateOfCompetition.Text = competition.DateOfCompetitions.ToString();
|
dateTimePickerDateOfCompetition.Text = competition.DateOfCompetitions.ToString();
|
||||||
_competitionId = value;
|
_competitionId = value;
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
MessageBox.Show(ex.Message, "Ошибка при получении данных", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public int ParticipantsID
|
|
||||||
{
|
|
||||||
set
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
var participants = _participantsRepository.GetParticipantsById(value);
|
var participants = _participantsRepository.GetParticipantsById(value);
|
||||||
if (participants == null)
|
if (participants == null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user