Ещё исправления
This commit is contained in:
parent
8894238c90
commit
5ffa496f6f
@ -20,8 +20,7 @@ namespace Artilleries
|
|||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void comboBoxSelectorMap_SelectedIndexChanged(object sender,
|
private void comboBoxSelectorMap_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
EventArgs e)
|
|
||||||
{
|
{
|
||||||
AbstractMap map = null;
|
AbstractMap map = null;
|
||||||
switch (comboBoxSelectorMap.Text)
|
switch (comboBoxSelectorMap.Text)
|
||||||
@ -35,9 +34,7 @@ EventArgs e)
|
|||||||
}
|
}
|
||||||
if (map != null)
|
if (map != null)
|
||||||
{
|
{
|
||||||
_mapArtilleriesCollectionGeneric = new
|
_mapArtilleriesCollectionGeneric = new MapWithSetArtilleriesGeneric<DrawingObjectArtillery, AbstractMap>(pictureBoxArtilleries.Width, pictureBoxArtilleries.Height, map);
|
||||||
MapWithSetArtilleriesGeneric<DrawingObjectArtillery, AbstractMap>(
|
|
||||||
pictureBoxArtilleries.Width, pictureBoxArtilleries.Height, map);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -73,8 +70,7 @@ EventArgs e)
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (MessageBox.Show("Удалить объект?", "Удаление",
|
if (MessageBox.Show("Удалить объект?", "Удаление", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
|
||||||
MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
|
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user