Пример #1
0
        static void Main()
        {
            IRepoFile      FileRepo;
            IList <string> countryData;
            string         culture;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            FileRepo    = RepoFactory.GetFileRepo();
            countryData = FileRepo.LoadFavoriteCountry();
            culture     = FileRepo.LoadCulture();
            if (culture.Length == 0)
            {
                Application.Run(new Culture());
            }
            else if (countryData.Count == 0)
            {
                Application.Run(new TeamSelect());
            }
            else
            {
                Application.Run(new PlayerSelect(countryData[1], countryData[0]));
            }
        }