diff --git a/GPW_Commesse/WebUserControls/mod_TagCloudProgetti.ascx.cs b/GPW_Commesse/WebUserControls/mod_TagCloudProgetti.ascx.cs
index 0af484b..6bc308e 100644
--- a/GPW_Commesse/WebUserControls/mod_TagCloudProgetti.ascx.cs
+++ b/GPW_Commesse/WebUserControls/mod_TagCloudProgetti.ascx.cs
@@ -54,9 +54,6 @@ namespace GPW_Commesse.WebUserControls
///
protected void setShowAdd()
{
- // sistemo buttons & display...
- lbtToggleOn.Visible = showAdd;
- lbtToggleOff.Visible = !showAdd;
tagBlock.Visible = showAdd;
}
///
@@ -73,19 +70,19 @@ namespace GPW_Commesse.WebUserControls
{
modo = TagCloudMode.standard;
}
+ cmp_toggle.toggleValue = showAdd;
setShowAdd();
-#if false
- // verifico se mostrare addnew...
- if (!memLayer.ML.isInSessionObject("showAddNewRec"))
- {
- showAdd = memLayer.ML.BoolSessionObj("showAddNewRec");
- }
- else
- {
- showAdd = true;
- }
-#endif
}
+ cmp_toggle.ehToggle += Cmp_toggle_ehToggle;
+ }
+ ///
+ /// Gestione evento toggle
+ ///
+ ///
+ ///
+ private void Cmp_toggle_ehToggle(object sender, EventArgs e)
+ {
+ showAdd = cmp_toggle.toggleValue;
}
///
diff --git a/GPW_Commesse/WebUserControls/mod_TagCloudProgetti.ascx.designer.cs b/GPW_Commesse/WebUserControls/mod_TagCloudProgetti.ascx.designer.cs
index 8c9b7b6..6534da4 100644
--- a/GPW_Commesse/WebUserControls/mod_TagCloudProgetti.ascx.designer.cs
+++ b/GPW_Commesse/WebUserControls/mod_TagCloudProgetti.ascx.designer.cs
@@ -24,22 +24,13 @@ namespace GPW_Commesse.WebUserControls
protected global::System.Web.UI.WebControls.RadioButtonList rblOre;
///
- /// Controllo lbtToggleOn.
+ /// Controllo cmp_toggle.
///
///
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
- protected global::System.Web.UI.WebControls.LinkButton lbtToggleOn;
-
- ///
- /// Controllo lbtToggleOff.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.LinkButton lbtToggleOff;
+ protected global::GPW_Commesse.WebUserControls.cmp_toggle cmp_toggle;
///
/// Controllo tagBlock.