IevlewaMD_lab8

This commit is contained in:
Milana Ievlewa 2023-12-17 00:53:51 +03:00
parent e2ac931dfd
commit 6758441ee8

View File

@ -337,6 +337,20 @@ namespace SpeedBoatLab
/// <param name="e"></param>
private void ButtonSortByColor_Click(object sender, EventArgs e) => CompareBoats(new BoatCompareByColor());
private void CompareStorages(IComparer<BoatsGenericStorage?> comparer, string name1, string name2)
{
if (storagesListBox.Items.Count < 2)
{
return;
}
var _storage1 = _storage[name1];
var _storage2 = _storage[name2];
if (_storage1 == null || _storage2 == null)
return;
}
/// <summary>
/// Сортировка по сравнителю
/// </summary>