50d65eebaa
- renaming classi gestione DbModels in - spostamento anagrafica flussi da auth a generale
58 lines
1.4 KiB
C#
58 lines
1.4 KiB
C#
using global::Microsoft.AspNetCore.Components;
|
|
using MP.Data.DbModels;
|
|
using MP.Data.Services;
|
|
|
|
namespace MP_TAB3.Components
|
|
{
|
|
public partial class SlideMenu
|
|
{
|
|
#region Public Properties
|
|
|
|
[Parameter]
|
|
public List<LinkMenu> MenuItems { get; set; } = new List<LinkMenu>();
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Protected Properties
|
|
|
|
[Inject]
|
|
protected MessageService MsgServ { get; set; } = null!;
|
|
|
|
[Inject]
|
|
protected NavigationManager navManager { get; set; } = null!;
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected string cssActive(string currUri)
|
|
{
|
|
return navManager.Uri.Contains(currUri) ? "bg-dark text-light" : "";
|
|
}
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
var rawVers = typeof(Program).Assembly.GetName().Version;
|
|
version = rawVers != null ? rawVers : new Version("0.0.0.0");
|
|
}
|
|
|
|
protected async Task SetPage(string tgtUrl)
|
|
{
|
|
await Task.Delay(1);
|
|
if (tgtUrl.Contains("status-map"))
|
|
{
|
|
await MsgServ.IdxMaccSet("");
|
|
}
|
|
await MsgServ.LastOpenedPageSet(tgtUrl);
|
|
navManager.NavigateTo(tgtUrl);
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
|
|
#region Private Fields
|
|
|
|
private Version version = null!;
|
|
|
|
#endregion Private Fields
|
|
}
|
|
} |