логикa ButtonSortByColor_Click
This commit is contained in:
parent
9619d8ea89
commit
932cb15b7f
@ -343,6 +343,12 @@ namespace Catamaran
|
|||||||
private void ButtonSortByColor_Click(object sender, EventArgs e)
|
private void ButtonSortByColor_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// TODO прописать логику
|
// TODO прописать логику
|
||||||
|
if (listBoxMaps.SelectedIndex == -1)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
_mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].Sort(new BoatCompareByColor());
|
||||||
|
pictureBox.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowSet();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -156,6 +156,6 @@ namespace Catamaran
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_places.Sort(comparer);
|
_places.Sort(comparer);
|
||||||
}чч
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user