protected void OnDelete(object sender, EventArgs args) { PortalDefinition.DeleteTab(CurrentReference); if (Delete != null) { Delete(this, new EventArgs()); } }
protected void OnDelete(object sender, EventArgs args) { PortalDefinition pd = PortalDefinition.Load(); PortalDefinition.Tab t = pd.GetTab(CurrentReference); PortalDefinition.DeleteTab(CurrentReference); if (Delete != null) { Delete(this, t); } }
protected void OnDeleteTab(object sender, EventArgs args) { PortalDefinition.Tab t = PortalDefinition.GetCurrentTab(); PortalDefinition.DeleteTab(t.reference); if (t.parent == null) { Response.Redirect(Helper.GetTabLink("")); } else { Response.Redirect(Helper.GetTabLink(t.parent.reference)); } }