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} {value}"; } } #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 } }