Files
Samuele Locatelli c3d07f626c MAG
- fix preliminari B5
2023-09-13 08:32:55 +02:00

59 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MP_MAG.WebUserControls
{
public partial class cmp_SelPedana : BaseUserControl
{
#region Protected Fields
protected string baseText = "Pedana";
protected string cssCol = "secondary";
#endregion Protected Fields
#region Public Properties
public string Pedana
{
get
{
return hfPedana.Value;
}
set
{
hfPedana.Value = value;
cmp_UDCList.AlSel = value;
lbtShow.CssClass = !string.IsNullOrEmpty(value) ? $"btn btn-{cssCol} w-100" : $"btn btn-outline-{cssCol} w-100 disabled";
lbtShow.Text = $"{baseText} <b>{value}</b>";
}
}
#endregion Public Properties
#region Protected Methods
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Pedana = "";
}
}
#endregion Protected Methods
#region Public Methods
public void doUpdate()
{
cmp_UDCList.doUpdate();
}
#endregion Public Methods
}
}