68 lines
1.4 KiB
C#
68 lines
1.4 KiB
C#
using EgwControlCenter.Core;
|
|
using Microsoft.AspNetCore.Components;
|
|
using Microsoft.JSInterop;
|
|
|
|
namespace EgwControlCenter.App.Components.Pages
|
|
{
|
|
public partial class Index
|
|
{
|
|
#region Protected Properties
|
|
|
|
[Inject]
|
|
protected NavigationManager NavMan { get; set; } = null!;
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Private Fields
|
|
|
|
private int currentCount = 0;
|
|
|
|
#endregion Private Fields
|
|
|
|
#region Private Properties
|
|
|
|
private System.Reflection.AssemblyName? CurrAssembly { get; set; } = System.Reflection.Assembly.GetExecutingAssembly().GetName();
|
|
|
|
#endregion Private Properties
|
|
|
|
#region Private Methods
|
|
|
|
private void GoTo01()
|
|
{
|
|
NavMan.NavigateTo("Nav01");
|
|
}
|
|
|
|
private void GoTo02()
|
|
{
|
|
NavMan.NavigateTo("Nav02");
|
|
}
|
|
|
|
private void GoTo03()
|
|
{
|
|
NavMan.NavigateTo("Nav03");
|
|
}
|
|
|
|
private void IncrementCount()
|
|
{
|
|
currentCount++;
|
|
}
|
|
|
|
[Inject]
|
|
protected IJSRuntime JSRuntime { get; set; } = null!;
|
|
|
|
private bool ReqSetup { get; set; } = false;
|
|
|
|
|
|
private string SetupBtnClass
|
|
{
|
|
get => ReqSetup ? "btn-info" : "btn-primary";
|
|
}
|
|
|
|
protected void ToggleSetup()
|
|
{
|
|
ReqSetup = !ReqSetup;
|
|
}
|
|
|
|
#endregion Private Methods
|
|
}
|
|
} |