public bool GetStoragePlaceOfID(String sID, ref c_StoragePlace cStoragePlace) { foreach (var Place in m_ListOfStoragePlaces) { if (Place.m_iWorkpieceID == sID) { cStoragePlace = Place; return(true); } } return(false); }
public bool GetStoragePlace(int iNo, ref c_StoragePlace cStoragePlace) { foreach (var Place in m_ListOfStoragePlaces) { if (Place.m_iNumber == iNo) { cStoragePlace = Place; return(true); } } return(false); }