PIbd-21_MasenkinMS_LabWork04

This commit is contained in:
parent e40550d7a2
commit faa713ee33
2 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ namespace AccordionBus
}
int pos = Convert.ToInt32(maskedTextBoxNumber.Text);
if (obj - pos != null)
if (obj - pos)
{
MessageBox.Show("Объект удален");
pictureBoxCollection.Image = obj.ShowBuses();

View File

@ -85,7 +85,7 @@ namespace AccordionBus.Generics
if (obj != null)
{
collect._collection.Remove(pos);
return collect._collection.Remove(pos);
}
return false;