bool IsSameLuminaireInPro ject Luminaire one Luminaire two return one

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
bool IsSameLuminaireInProject(Luminaire one, Luminaire two)
{
return (
(one.LuminaireType == two.LuminaireType) &&
IsEqual(one.Cant,two.Cant) &&
IsEqual(one.Tilt,two.Tilt) &&
IsEqual(one.Bracket.Elevation, two.Bracket.Elevation) &&
IsEqual(one.FavoriteLuminaire.MaintenanceFactor, two.FavoriteLuminaire.MaintenanceFactor) &&
IsEqual(one.OutreachLength, two.OutreachLength) &&
IsEqual(one.FavoriteLuminaire.LuminousFlux, two.FavoriteLuminaire.LuminousFlux) &&
(one.FavoriteLuminaire.SelectedCatalogReference == two.FavoriteLuminaire.SelectedCatalogReference)
);
}