7d289a3b64
pulizia codice...
34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
using SteamWare;
|
|
using System;
|
|
|
|
public partial class impianti : UserPage
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
mod_impianti1.eh_selValore += new EventHandler(Mod_macchine1_eh_selValore);
|
|
mod_impianti1.eh_resetSelezione += new EventHandler(Mod_macchine1_eh_resetSelezione);
|
|
// abilito solo alla vista..
|
|
mod_macchine1.vistaModulo = SteamWare.tipoVistaMod.selezione;
|
|
}
|
|
|
|
void Mod_macchine1_eh_resetSelezione(object sender, EventArgs e)
|
|
{
|
|
mod_macchine1.Visible = false;
|
|
}
|
|
|
|
void Mod_macchine1_eh_selValore(object sender, EventArgs e)
|
|
{
|
|
mod_macchine1.Visible = true;
|
|
mod_macchine1.idxImpiantoSel = memLayer.ML.IntSessionObj("idxImpianto_sel");
|
|
mod_macchine1.doUpdate();
|
|
}
|
|
|
|
protected override void OnUnload(EventArgs e)
|
|
{
|
|
base.OnUnload(e);
|
|
mod_impianti1.eh_selValore -= new EventHandler(Mod_macchine1_eh_selValore);
|
|
mod_impianti1.eh_resetSelezione -= new EventHandler(Mod_macchine1_eh_resetSelezione);
|
|
}
|
|
|
|
}
|