public static Powder GetPowderFromName(string PowderName) { Powder lRTN = null; foreach (Powder lp in MyPowders) { if (lp.Name == PowderName) { lRTN = lp; break; } } return(lRTN); }
public static Powder GetPowder(string ID) { Powder lRTN = null; foreach (Powder lp in MyPowders) { if (lp.ID == ID) { lRTN = lp; break; } } return(lRTN); }