Files
mapo-mono/MP.MONO.UI/Pages/Parameters.razor.cs
T
2022-03-22 19:54:26 +01:00

50 lines
1.1 KiB
C#

namespace MP.MONO.UI.Pages
{
public partial class Parameters
{
#region Protected Properties
protected List<string> selParams { get; set; } = new List<string>();
#endregion Protected Properties
#region Public Properties
public string pcss
{
get
{
string answ = "col-12";
int numPar = selParams.Count;
if (numPar > 6)
{
answ = "col-4";
}
else if (numPar > 2)
{
answ = "col-6";
}
return answ;
}
}
#endregion Public Properties
#region Protected Methods
protected void paramSelected(string paramName)
{
if (!selParams.Contains(paramName))
{
selParams.Add(paramName);
}
}
protected void resetSel()
{
selParams = new List<string>();
}
#endregion Protected Methods
}
}