PROG:
- Aggiunta preliminare gestione UserName - verifica gestione auth windows - update in prod
This commit is contained in:
@@ -8,16 +8,6 @@ namespace MP.Prog.Data
|
||||
{
|
||||
public class MessageService
|
||||
{
|
||||
#region Private Fields
|
||||
|
||||
private SelectData _fileFilter = SelectData.Init(5, 15);
|
||||
private string _pageIcon;
|
||||
private string _pageName;
|
||||
private string _searchVal = "";
|
||||
private bool showSearch;
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
#region Public Events
|
||||
|
||||
public event Action EA_FilterUpdated;
|
||||
@@ -30,6 +20,8 @@ namespace MP.Prog.Data
|
||||
|
||||
public event Action EA_ShowSearch;
|
||||
|
||||
public event Action EA_UserUpdated;
|
||||
|
||||
#endregion Public Events
|
||||
|
||||
#region Public Properties
|
||||
@@ -106,8 +98,32 @@ namespace MP.Prog.Data
|
||||
}
|
||||
}
|
||||
|
||||
public string UserName
|
||||
{
|
||||
get => _userName;
|
||||
set
|
||||
{
|
||||
if (_userName != value)
|
||||
{
|
||||
_userName = value;
|
||||
ReportUserUpd();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Private Fields
|
||||
|
||||
private SelectData _fileFilter = SelectData.Init(5, 15);
|
||||
private string _pageIcon;
|
||||
private string _pageName;
|
||||
private string _searchVal = "";
|
||||
private string _userName = "";
|
||||
private bool showSearch;
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void ReportFilter()
|
||||
@@ -150,6 +166,14 @@ namespace MP.Prog.Data
|
||||
}
|
||||
}
|
||||
|
||||
private void ReportUserUpd()
|
||||
{
|
||||
if (EA_UserUpdated != null)
|
||||
{
|
||||
EA_UserUpdated?.Invoke();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user