PIbd-21_MasenkinMS_LabWork04 #5

Closed
Factorino73 wants to merge 2 commits from LabWork04 into LabWork03
2 changed files with 2 additions and 2 deletions
Showing only changes of commit faa713ee33 - Show all commits

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;