// UI --------------------------------------------------------------------------------------------------------- #region UI private async Task ChangeRecentRecords(EFilter_Game game, EFilter_RRType type, EFilter_Mode mode) { if (type == EFilter_RRType.top) { var recentRecords10Datum = await recordsViewModel.GetRecentRecords10(game, mode); recentRecords10Data = recentRecords10Datum?.data; if (recentRecords10Data is null) { return; } LayoutRecentRecords10(); } else { var recentRecordsDatum = await recordsViewModel.GetRecentRecords(game, type, mode); recentRecordsData = recentRecordsDatum?.data; if (recentRecordsData is null) { return; } LayoutRecentRecords(EFilter_ToString.toString2(type)); } lastRefresh = DateTime.Now; }