Изменил(а) на 'HoistingCrane/HoistingCrane/FormMapWithSetHoistingCrane.cs'

Signed-off-by: RomanovEgor <romanov17903@gmail.com>
This commit is contained in:
RomanovEgor 2022-12-25 10:42:46 +04:00 committed by 10Г Егор Романов
parent 446f363f01
commit b7696437d3

View File

@ -31,6 +31,8 @@ namespace HoistingCrane
case "Вторая карта": case "Вторая карта":
map = new SecondMap(); map = new SecondMap();
break; break;
} }
if (map != null) if (map != null)
{ {
@ -47,8 +49,6 @@ namespace HoistingCrane
{ {
if (_mapHoistingCraneCollectionGeneric == null) if (_mapHoistingCraneCollectionGeneric == null)
{ {
return;
}
FormHoistingCrane form = new(); FormHoistingCrane form = new();
if (form.ShowDialog() == DialogResult.OK) if (form.ShowDialog() == DialogResult.OK)
{ {
@ -65,6 +65,8 @@ namespace HoistingCrane
} }
} }
}
}
private void ButtonRemoveHoistingCrane_Click(object sender, EventArgs e) private void ButtonRemoveHoistingCrane_Click(object sender, EventArgs e)
{ {
if (string.IsNullOrEmpty(maskedTextBoxPosition.Text)) if (string.IsNullOrEmpty(maskedTextBoxPosition.Text))