コード例 #1
0
        public static Powder GetPowderFromName(string PowderName)
        {
            Powder lRTN = null;

            foreach (Powder lp in MyPowders)
            {
                if (lp.Name == PowderName)
                {
                    lRTN = lp;
                    break;
                }
            }

            return(lRTN);
        }
コード例 #2
0
        public static Powder GetPowder(string ID)
        {
            Powder lRTN = null;

            foreach (Powder lp in MyPowders)
            {
                if (lp.ID == ID)
                {
                    lRTN = lp;
                    break;
                }
            }

            return(lRTN);
        }