Упрощено выражение с new
This commit is contained in:
parent
c789de973c
commit
5c51aa1122
@ -76,7 +76,7 @@ namespace WarmlyLocomotive
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
DrawningObjectLocomotive locomotive = new DrawningObjectLocomotive(drawningLocomotive);
|
DrawningObjectLocomotive locomotive = new(drawningLocomotive);
|
||||||
if (_mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty] + locomotive != -1)
|
if (_mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty] + locomotive != -1)
|
||||||
{
|
{
|
||||||
MessageBox.Show("Объект добавлен");
|
MessageBox.Show("Объект добавлен");
|
||||||
|
Loading…
Reference in New Issue
Block a user