LabWork07 PIbd-21 Zaharchenko #8

Closed
shadowik wants to merge 6 commits from LabWork07 into LabWork06
Showing only changes of commit 3de58e4df9 - Show all commits

View File

@ -29,20 +29,6 @@ namespace DoubleDeckerBus
public int Insert(T bus, int position)
{
try
{
if (bus.getBus() == null)
{
throw new NullReferenceException();
}
}
catch (NullReferenceException) {
MessageBox.Show("null");
}
if (BusyPlaces == _maxCount) {
throw new StorageOverflowException(BusyPlaces);
}
if (position < 0 || position >= _maxCount)
{
throw new BusNotFoundException("Место указано неверно");