using GPW_data; using System; using System.Collections.Generic; using System.Linq; namespace GPW_Admin.WebUserControls { public partial class cmp_ticketList : BaseUserControl { #region Protected Methods protected void Page_Load(object sender, EventArgs e) { displayTickets(); } private void displayTickets() { var elencoTickets = licenzeGPW .TicketsList .Where(x => (x.Status < LiManObj.StatoRichiesta.Approvata) || chkShowAll.Checked) .ToList(); grView.DataSource = elencoTickets; grView.DataBind(); } protected void lbtClosePage_Click(object sender, EventArgs e) { raiseReset(); } #endregion Protected Methods } }