コード例 #1
0
        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);
        }
コード例 #2
0
 public RelatedUnitsFamily(RelatedUnit myInfo, Dictionary <int, RelatedUnit> other)
 {
     MyInfo = myInfo;
     Other  = other;
 }