using SteamWare; using System; using System.Web.UI; namespace CMS_SC { public partial class Vocabolario : System.Web.UI.Page { protected override void OnInit(EventArgs e) { base.OnInit(e); if (!Page.IsPostBack) { ((Bootstrap)this.Master).showSearch = true; mod_righePag1.numRowPag = 20; Mod_vocabolario1.pageSize = mod_righePag1.numRowPag; } // imposto controlli eventi Mod_vocabolario1.eh_selezioneValore += new EventHandler(Mod_vocabolario1_eh_selezioneValore); Mod_vocabolario1.eh_resetSelezione += new EventHandler(Mod_vocabolario1_eh_resetSelezione); // setto visibilità dettaglio termini Mod_lemmiVocab1.Visible = false; mod_righePag1.eh_newNum += mod_righePag1_eh_newNum; } /// /// aggiornato numero righe datagrid... aggiorno visualizzazione /// /// /// void mod_righePag1_eh_newNum(object sender, EventArgs e) { Mod_vocabolario1.pageSize = mod_righePag1.numRowPag; } void Mod_vocabolario1_eh_resetSelezione(object sender, EventArgs e) { Mod_lemmiVocab1.Visible = false; Session.Remove("lemma_sel"); } /// /// wrapper traduzione /// /// /// public string traduci(string lemma) { return user_std.UtSn.Traduci(lemma); } void Mod_vocabolario1_eh_selezioneValore(object sender, EventArgs e) { Mod_lemmiVocab1.Visible = true; Mod_lemmiVocab1.doUpdate(); } protected override void OnUnload(EventArgs e) { base.OnUnload(e); Mod_vocabolario1.eh_selezioneValore -= new EventHandler(Mod_vocabolario1_eh_selezioneValore); Mod_vocabolario1.eh_resetSelezione -= new EventHandler(Mod_vocabolario1_eh_resetSelezione); } } }