private RelatedUnit FindByUnitName(XUnitTypeName unitName) { RelatedUnit myInfo = null; foreach (var i in Items) { var t = new TypesGroup(i.Name); if (t.Unit != unitName) { continue; } myInfo = i; break; } if (myInfo is null) { return(null); } //throw new NotImplementedException(); return(myInfo); }
public RelatedUnitsFamily(RelatedUnit myInfo, Dictionary <int, RelatedUnit> other) { MyInfo = myInfo; Other = other; }