Example #1
0
        public static void LoadSeasons()
        {
            DataStoreResult result = Seasons.Import();

            CMOptions.ToConsole("Result: {0}", result.ToString());

            switch (result)
            {
            case DataStoreResult.Null:
            case DataStoreResult.Busy:
            case DataStoreResult.Error:
            {
                if (Seasons.HasErrors)
                {
                    CMOptions.ToConsole("Seasons database has errors...");

                    Seasons.Errors.ForEach(CMOptions.ToConsole);
                }
            }
            break;

            case DataStoreResult.OK:
                CMOptions.ToConsole("Season count: {0:#,0}", Seasons.Count);
                break;
            }
        }