43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
using System;
|
|
|
|
namespace PUB.PAM
|
|
{
|
|
public partial class AnagCond2Forn : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
mod_anagCond.eh_selected += Mod_anagCond_eh_selected;
|
|
mod_anagCond.eh_reset += Mod_anagCond_eh_reset;
|
|
}
|
|
|
|
private void Mod_anagCond_eh_reset(object sender, EventArgs e)
|
|
{
|
|
togglDetail(false);
|
|
}
|
|
|
|
private void Mod_anagCond_eh_selected(object sender, EventArgs e)
|
|
{
|
|
mod_F2C.idxCond = mod_anagCond.idxCond;
|
|
togglDetail(true);
|
|
}
|
|
|
|
|
|
private void togglDetail(bool showDetail)
|
|
{
|
|
// cambio classe div + visibilità...
|
|
divSide.Visible = showDetail;
|
|
divMain.Attributes.Remove("class");
|
|
divSide.Attributes.Remove("class");
|
|
if (showDetail)
|
|
{
|
|
divMain.Attributes.Add("class", "col-8");
|
|
divSide.Attributes.Add("class", "col-4");
|
|
}
|
|
else
|
|
{
|
|
divMain.Attributes.Add("class", "col-12");
|
|
divSide.Attributes.Add("class", "col-1");
|
|
}
|
|
}
|
|
}
|
|
} |