Esempio n. 1
0
 private void Awake()
 {
     if (helpControl == null)
     {
         helpControl = this;
     }
 }
        private void Help_Menu_Click(object sender, EventArgs e)
        {
            var c = new HelpControl();

            if (panel1.Controls.Count > 0)
            {
                panel1.Controls.RemoveAt(0);
            }
            panel1.Controls.Add(c);
        }
Esempio n. 3
0
        private void helpButton_Click(object sender, EventArgs e)
        {
            if (helpButton.Checked)
            {
                this.sideBarPanel.Controls.Clear();
                this._contentPanel.Controls.Clear();

                HelpControl helpControl = new HelpControl();
                this.sideBarPanel.Controls.Add(helpControl);
                currentPanelContent = helpControl;
            }
        }
Esempio n. 4
0
        private bool AddCaptionPanelOrHelpControl()
        {
            bool flag     = this.slabFrames.Count == 1;
            bool showHelp = ((EcpContentPage)this.Page).ShowHelp;
            bool result   = false;

            if (flag)
            {
                SlabFrame slabFrame = this.slabFrames[0];
                slabFrame.ShowHelp    = showHelp;
                slabFrame.PublishHelp = true;
                if (this.IsSingleSlabPage)
                {
                    slabFrame.Attributes.Add("fill", "100");
                }
            }
            else if (showHelp)
            {
                CaptionPanel captionPanel = new CaptionPanel();
                captionPanel.HelpId = this.HelpId;
                captionPanel.Attributes.Add("dock", "top");
                captionPanel.ShowCaption = false;
                captionPanel.ShowHelp    = true;
                this.Controls.Add(captionPanel);
                result = true;
            }
            else
            {
                HelpControl helpControl = new HelpControl();
                helpControl.HelpId   = this.HelpId;
                helpControl.ShowHelp = false;
                helpControl.NeedPublishHelpLinkWhenHidden = true;
                this.Controls.Add(helpControl);
            }
            return(result);
        }
Esempio n. 5
0
 public HelpConnector(string tag, MainConnector parent, HelpControl control)
     : base(parent, control)
 {
     this.Tag = tag;
 }