fix
This commit is contained in:
parent
38eb021ed4
commit
57ba9fa79f
@ -56,8 +56,7 @@ namespace Tank
|
|||||||
ReloadObjects();
|
ReloadObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ListBoxObjects_SelectedIndexChanged(object sender,
|
private void ListBoxObjects_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
EventArgs e)
|
|
||||||
{
|
{
|
||||||
DrawTank.Image =
|
DrawTank.Image =
|
||||||
_storage[CollectionListBox.SelectedItem?.ToString() ?? string.Empty]?.ShowTanks();
|
_storage[CollectionListBox.SelectedItem?.ToString() ?? string.Empty]?.ShowTanks();
|
||||||
@ -178,7 +177,6 @@ namespace Tank
|
|||||||
|
|
||||||
private void LoadToolStripMenuItem_Click(object sender, EventArgs e)
|
private void LoadToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (openFileDialog.ShowDialog() == DialogResult.OK)
|
if (openFileDialog.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
if (_storage.LoadData(openFileDialog.FileName))
|
if (_storage.LoadData(openFileDialog.FileName))
|
||||||
|
Loading…
Reference in New Issue
Block a user