- Aggiunta preliminare gestione UserName
- verifica gestione auth windows
- update in prod
This commit is contained in:
Samuele Locatelli
2024-10-22 12:06:25 +02:00
parent 76b84f24d3
commit d9fa23b17b
19 changed files with 693 additions and 581 deletions
+34 -10
View File
@@ -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
}
}