update nach Schuelererfassung
This commit is contained in:
21
BlazorApp - Kopie (4)/Shared/Common/SampleBaseComponent.cs
Normal file
21
BlazorApp - Kopie (4)/Shared/Common/SampleBaseComponent.cs
Normal 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);
|
||||
//}
|
||||
}
|
||||
}
|
||||
32
BlazorApp - Kopie (4)/Shared/Common/SyncfusionLocalizer.cs
Normal file
32
BlazorApp - Kopie (4)/Shared/Common/SyncfusionLocalizer.cs
Normal 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;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user