lab 1 ready 100%

This commit is contained in:
Maxim 2024-11-19 00:13:58 +04:00
parent e8b8778e62
commit b9b898380c
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -36,7 +36,7 @@ namespace ProjectGSM.Forms
{ {
throw new Exception("Имеются незаполненные поля"); 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(); Close();
} }
catch (Exception ex) catch (Exception ex)