Exemplo n.º 1
0
    protected override void OnPreRender(EventArgs e)
    {
        base.OnPreRender(e);

        ReloadMenu();

        // Display information
        AutomationManager.ShowAutomationInfo();

        // Hide menu if no actions
        plcMenu.Visible = menu.HasAnyVisibleAction() || !string.IsNullOrEmpty(pnlDoc.Label.Text) || lblInfo.Visible;

        if (plcMenu.Visible)
        {
            RegisterActionScripts();
        }
    }
    protected override void OnPreRender(EventArgs e)
    {
        base.OnPreRender(e);

        ReloadMenu();

        // Display information
        AutomationManager.ShowAutomationInfo();

        // Hide menu if no actions
        Visible &= menu.Visible || pnlHelp.Visible || !string.IsNullOrEmpty(pnlDoc.Label.Text);

        if (Visible)
        {
            RegisterActionScripts();
        }
    }