123456789101112131415161718192021222324252627282930 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.Linq;
- using System.Reflection;
- using System.Threading.Tasks;
- using Microsoft.AspNetCore.Components;
- namespace HyperCube.Pages
- {
- public partial class Verifying : ComponentBase
- {
- private int counter = 1;
- protected override async Task OnInitializedAsync()
- {
- /// refreshing articles
- await AppData.LoadArticles();
- }
- private static string GetDisplayName(Enum enumValue)
- {
- return enumValue.GetType()
- .GetMember(enumValue.ToString())
- .First()
- .GetCustomAttribute<DisplayAttribute>()
- .GetName();
- }
- }
- }
|