public frmAddEditCollectionEntry(CollectionManager collMgr, CollectionEntryDetails collEntryDets, CollectionEntryForm type) { _collectionManager = collMgr; _collectionEntryDetails = collEntryDets; _type = type; InitializeComponent(); }
public frmAddEditMarketEntry(ResourceManager resMgr, MarketEntryManager mEMgr, CollectionEntryDetails cEDets) { this._resourceManager = resMgr; this._marketEntryManager = mEMgr; this._collectionEntryDetails = cEDets; this._type = MarketEntryForm.Add; InitializeComponent(); }
public List <CollectionEntryDetails> RetrieveCollectionEntryDetails(int collectionId) { var entryDetails = new List <CollectionEntryDetails>(); try { var entries = CollectionAccessor.RetrieveCollectionEntriesByCollectionId(collectionId); foreach (var item in entries) { var entryDetail = new CollectionEntryDetails() { CollectionEntry = item, Creature = CollectionAccessor.RetrieveCreature(item.CreatureID) }; entryDetails.Add(entryDetail); } } catch (Exception) { throw; } return(entryDetails); }