48 lines
1.1 KiB
C#
48 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace PUB.PBO
|
|
{
|
|
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");
|
|
}
|
|
}
|
|
}
|
|
} |