using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace GPW_Admin { public partial class Vocabolario : BasePage { #region Private Methods /// /// aggiornato numero righe datagrid... aggiorno visualizzazione /// /// /// private void cmp_righePag_eh_newNum(object sender, EventArgs e) { cmp_vocabolario.pageSize = cmp_righePag.numRowPag; } private void cmp_vocabolario_eh_resetSelezione(object sender, EventArgs e) { cmp_lemmiVocab.Visible = false; Session.Remove("lemma_sel"); } private void cmp_vocabolario_eh_selezioneValore(object sender, EventArgs e) { cmp_lemmiVocab.Visible = true; cmp_lemmiVocab.doUpdate(); } #endregion Private Methods #region Protected Methods protected override void OnUnload(EventArgs e) { base.OnUnload(e); cmp_vocabolario.eh_selezioneValore -= new EventHandler(cmp_vocabolario_eh_selezioneValore); cmp_vocabolario.eh_resetSelezione -= new EventHandler(cmp_vocabolario_eh_resetSelezione); } protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { cmp_righePag.numRowPag = 10; cmp_vocabolario.pageSize = cmp_righePag.numRowPag; } // imposto controlli eventi cmp_vocabolario.eh_selezioneValore += new EventHandler(cmp_vocabolario_eh_selezioneValore); cmp_vocabolario.eh_resetSelezione += new EventHandler(cmp_vocabolario_eh_resetSelezione); // setto visibilità dettaglio termini cmp_lemmiVocab.Visible = false; cmp_righePag.eh_newNum += cmp_righePag_eh_newNum; } #endregion Protected Methods } }