Правки 8-й лабораторной.

This commit is contained in:
Programmist73 2022-12-03 17:52:39 +04:00
parent acba9f2071
commit d5f6a04152
2 changed files with 11 additions and 1 deletions

View File

@ -43,6 +43,16 @@ namespace Airbus
return 1; return 1;
} }
if(xPlane.GetPlane.Airbus.Speed != yPlane.GetPlane.Airbus.Speed)
{
return 1;
}
if (xPlane.GetPlane.Airbus.Weight != yPlane.GetPlane.Airbus.Weight)
{
return 1;
}
var xEntity = xPlane.GetPlane.Airbus; var xEntity = xPlane.GetPlane.Airbus;
var yEntity = yPlane.GetPlane.Airbus; var yEntity = yPlane.GetPlane.Airbus;
var colorCompare = xEntity.CorpusColor.Name.CompareTo(yEntity.CorpusColor.Name); var colorCompare = xEntity.CorpusColor.Name.CompareTo(yEntity.CorpusColor.Name);

View File

@ -61,7 +61,7 @@ namespace Airbus
return speedCompare; return speedCompare;
} }
return xPlane.GetPlane.Airbus.Speed.CompareTo(yPlane.GetPlane.Airbus.Speed); return xPlane.GetPlane.Airbus.Weight.CompareTo(yPlane.GetPlane.Airbus.Weight);
} }
} }
} }