Pibd-24 Boyko_M.S. LabWork01 #1

Closed
LivelyPuer wants to merge 6 commits from lab1 into main
2 changed files with 3 additions and 3 deletions
Showing only changes of commit b9b898380c - Show all commits

View File

@ -82,8 +82,8 @@ namespace ProjectGSM.Forms
priceNumeric.Value,
winPriceNumeric.Value,
verdictCheckBox.Checked,
courtBox.SelectedIndex,
clientBox.SelectedIndex,
((Court)courtBox.SelectedItem).Id,
((Client)clientBox.SelectedItem).Id,
textBox1.Text);
}
}

View File

@ -36,7 +36,7 @@ namespace ProjectGSM.Forms
{
throw new Exception("Имеются незаполненные поля");
}
_statusHistoryRepository.CreateStatusHistory(StatusHistory.CreateEntity(caseBox.SelectedIndex, (Status)statusBox.SelectedIndex!, priceNumeric.Value, dateTimePicker1.Value));
_statusHistoryRepository.CreateStatusHistory(StatusHistory.CreateEntity((((Case)caseBox.SelectedItem!)!).Id, (Status)statusBox.SelectedIndex!, priceNumeric.Value, dateTimePicker1.Value));
Close();
}
catch (Exception ex)