delete holes and return one masssage box

This commit is contained in:
Zara28 2022-10-19 09:10:35 +04:00
parent 9848138396
commit 533515c075
3 changed files with 5 additions and 8 deletions

View File

@ -127,6 +127,11 @@ namespace ArmoredVehicle
MainForm form = new();
if (form.ShowDialog() == DialogResult.OK)
{
if (form.SelectedMachine == null)
{
MessageBox.Show("Вы не создали объект");
return;
}
DrawningObject machine = new(form.SelectedMachine);
if (_mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty] + machine != -1)
{

View File

@ -112,7 +112,6 @@
/// </summary>
private void Shaking()
{
int j = _setMachines.Count - 1;
for (int i = 0; i < _setMachines.Count; i++)
{
@ -134,7 +133,6 @@
}
}
}
}
/// <summary>
/// Метод отрисовки фона
@ -190,7 +188,6 @@
currentHeight++;
}
if (currentHeight > height) return;
}
}

View File

@ -63,7 +63,6 @@
{
if (position < _maxCount && position >= 0)
{
if (_places.ElementAt(position) != null)
{
T result = _places.ElementAt(position);
@ -72,10 +71,8 @@
return result;
}
return null;
}
return null;
}
/// <summary>
@ -99,9 +96,7 @@
if (position < _maxCount && position >= 0)
{
Insert(this[position], position);
}
}
}