IevlewaMD_lab8
This commit is contained in:
parent
e2ac931dfd
commit
6758441ee8
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user