Exemple #1
0
        public static List <RomInformation> GetAllRomList()
        {
            List <RomInformation> lAllRomInfo = BQDB.GetAllGameInfo();

            foreach (var romInfo in lAllRomInfo)
            {
                romInfo.ExpandInfo.LargeIcon = BQIO.GetRomLargeIco(romInfo);
                romInfo.ExpandInfo.SmallIcon = BQIO.GetRomSmallIco(romInfo);
            }

            return(lAllRomInfo);
        }
        private void UpdateRomList(ObservableCollection <RomInformation> pRomList)
        {
            foreach (var romInfo in _TempRomInfoList)
            {
                romInfo.ExpandInfo.LargeIcon = BQIO.GetRomLargeIco(romInfo);
                romInfo.ExpandInfo.SmallIcon = BQIO.GetRomSmallIco(romInfo);
            }

            _TempRomInfoList.ForEach(rominfo =>
            {
                if (pRomList.FirstOrDefault(rom => rom.BasicInfo.Serial == rominfo.BasicInfo.Serial) == null)
                {
                    pRomList.Add(rominfo);
                }
            });
        }
Exemple #3
0
        public static List <RomInformation> InitializeFirstRomList()
        {
            List <RomInformation> lAllRomInfo    = new List <RomInformation>();
            List <string>         lRomSerialList = BQIO.GetAllRomFileFromLocal();

            for (int i = 0; i < lRomSerialList.Count; i++)
            {
                RomInformation lRomInformation = BQDB.GetGameInfo(lRomSerialList[i]);
                if (lRomInformation != null)
                {
                    lAllRomInfo.Add(lRomInformation);
                }
            }

            foreach (var romInfo in lAllRomInfo)
            {
                romInfo.ExpandInfo.LargeIcon = BQIO.GetRomLargeIco(romInfo);
                romInfo.ExpandInfo.SmallIcon = BQIO.GetRomSmallIco(romInfo);
            }

            return(lAllRomInfo);
        }