53 lines
1.1 KiB
C#
53 lines
1.1 KiB
C#
using Newtonsoft.Json.Linq;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EgwCoreLib.Lux.Data.Services.General
|
|
{
|
|
public class MessageService : IMessageService
|
|
{
|
|
#region Public Events
|
|
|
|
public event Action EA_LangChanged = null!;
|
|
|
|
#endregion Public Events
|
|
|
|
#region Public Properties
|
|
|
|
public string UserLang
|
|
{
|
|
get => _userLang;
|
|
set
|
|
{
|
|
if (_userLang != value)
|
|
{
|
|
_userLang = value;
|
|
ReportLangChange();
|
|
}
|
|
}
|
|
}
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Public Methods
|
|
|
|
public void ReportLangChange()
|
|
{
|
|
if (EA_LangChanged != null)
|
|
{
|
|
EA_LangChanged?.Invoke();
|
|
}
|
|
}
|
|
|
|
#endregion Public Methods
|
|
|
|
#region Private Fields
|
|
|
|
private string _userLang = "IT";
|
|
|
|
#endregion Private Fields
|
|
}
|
|
} |