Update 07082021

This commit is contained in:
2021-08-07 09:44:37 +02:00
parent 1ff218a129
commit 4d443fdfd4
5663 changed files with 6581858 additions and 1321 deletions

View File

@@ -0,0 +1,21 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
namespace BlazorApp.Shared
{
/// <summary>
/// A base component to perform common functionalities.
/// </summary>
public class SampleBaseComponent: ComponentBase
{
//[Inject]
//protected SampleService SampleService { get; set; }
//protected override void OnAfterRender(bool firstRender)
//{
// base.OnAfterRender(firstRender);
// SampleService.Spinner?.Hide();
// SampleService.Spinner?.ShowModalSpinner(false);
//}
}
}

View File

@@ -0,0 +1,32 @@
using Syncfusion.Blazor;
namespace BlazorApp.Shared
{
/// <summary>
/// Extends ISyncfusionStringLocalizer for applying localization to Syncfusion components.
/// </summary>
public class SyncfusionLocalizer : ISyncfusionStringLocalizer
{
/// <summary>
/// Get locale value from the resource file.
/// </summary>
/// <param name="key">Locale key for getting the translated text.</param>
public string GetText(string key)
{
return this.ResourceManager.GetString(key);
}
/// <summary>
/// Access the resource file and get the exact value from the locale key.
/// </summary>
public System.Resources.ResourceManager ResourceManager
{
get
{
return BlazorApp.Resources.SfResources.ResourceManager;
}
}
}
}