コード例 #1
0
 public frmAddEditCollectionEntry(CollectionManager collMgr, CollectionEntryDetails collEntryDets, CollectionEntryForm type)
 {
     _collectionManager      = collMgr;
     _collectionEntryDetails = collEntryDets;
     _type = type;
     InitializeComponent();
 }
コード例 #2
0
 public frmAddEditMarketEntry(ResourceManager resMgr, MarketEntryManager mEMgr, CollectionEntryDetails cEDets)
 {
     this._resourceManager        = resMgr;
     this._marketEntryManager     = mEMgr;
     this._collectionEntryDetails = cEDets;
     this._type = MarketEntryForm.Add;
     InitializeComponent();
 }
コード例 #3
0
        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);
        }