Esempio n. 1
0
        public static bool ChampionsExists(string currentRegion)
        {
            LoL_DB   = new LoLDataBase();
            fileName = $"{mainDirectoryName}\\champions_DB.txt";

            if (File.Exists(fileName))
            {
                return(true);
            }

            return(false);
        }
Esempio n. 2
0
        public static bool MatchesExist(string playerName, string currentRegion)
        {
            LoL_DB = new LoLDataBase();

            region   = currentRegion;
            fileName = $"{mainDirectoryName}\\{region}\\{playerName}\\matchDB.txt";

            if (File.Exists(fileName))
            {
                LoL_DB.Clear();
                LoL_DB.ReadXml(fileName);

                return(true);
            }

            return(false);
        }
Esempio n. 3
0
        public static bool PlayerExists(string playerName, string currentRegion)
        {
            LoL_DB   = new LoLDataBase();
            region   = currentRegion;
            fileName = $"{mainDirectoryName}\\{region}\\players_DB.txt";

            if (File.Exists(fileName))
            {
                LoL_DB.Clear();
                LoL_DB.ReadXml(fileName);

                foreach (var player in LoL_DB.Player)
                {
                    if (player.Name == playerName)
                    {
                        return(true);
                    }
                }
            }

            return(false);
        }