@inject DialogService DialogService

@code {
    public void Show()
    {
        DialogService.Open(
            "",
            x =>
            @<RadzenStack AlignItems="AlignItems.Center" Gap="2rem" class="rz-p-6">
                <RadzenProgressBarCircular Value="100" ShowValue="false" Mode="ProgressBarMode.Indeterminate" />
                <RadzenText TextStyle="TextStyle.H5">Пожалуйста, подождите...</RadzenText>
            </RadzenStack>,
            new DialogOptions()
            {
                ShowTitle = false,
                Style = "min-height:auto;min-width:auto;width:auto",
                CloseDialogOnEsc = false,
                CssClass = ""
            });
    }

    public void Hide()
    {
        DialogService.Close();
    }
}
