50 lines
1.1 KiB
C#
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
|
|
}
|
|
} |