public static void SaveSeasons() { DataStoreResult result = Seasons.Export(); 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; } }