Now shows how many CChars left in the list

This commit is contained in:
BOT Alex 2023-06-29 12:47:18 +02:00
parent f634474923
commit dab3cb47b7
4 changed files with 23 additions and 1 deletions

View file

@ -5,6 +5,10 @@
<MudLayout>
<MudAppBar Elevation="0">
@if (Program.CCharsLeft > 0)
{
<MudText>@("CChars left: " + Program.CCharsLeft)</MudText>
}
<MudSpacer />
<MudIconButton Icon="@Icons.Custom.Brands.MudBlazor" Color="Color.Inherit" Link="https://mudblazor.com/" Target="_blank" />
<MudIconButton Icon="@Icons.Custom.Brands.LinkedIn" Color="Color.Inherit" Link="https://www.linkedin.com/in/zhentao-wei-3a3a0a182/" Target="_blank" />
@ -17,5 +21,10 @@
</MudLayout>
@code {
protected override async Task OnInitializedAsync()
{
Program.UpdateUiEvent += OnUiUpdate;
}
void OnUiUpdate() => StateHasChanged();
}