Exemple #1
0
        protected override void Render(HtmlTextWriter writer)
        {
            lblLinks.Text = "";

            bool setseparator = false;

            foreach (Object obj in items)
            {
                if (setseparator)
                {
                    VSeparator1 sep = new VSeparator1();
                    lblLinks.Text += sep.GetHTML();
                }
                else
                {
                    setseparator = true;
                }

                if (obj is IGetHTML)
                {
                    lblLinks.Text += ((IGetHTML)obj).GetHTML();
                }
            }
            SetImage();
            if (IsClickable)
            {
                lbTitle.Text = Title;
            }
            else
            {
                lblTitle.Text     = Title;
                ibCompact.Visible = false;
            }
            base.Render(writer);
        }
Exemple #2
0
        protected override void Render(HtmlTextWriter writer)
        {
            lblLinks.Text = "";

            bool setseparator = false;
            foreach (Object obj in items)
            {
                if (setseparator)
                {
                    VSeparator1 sep = new VSeparator1();
                    lblLinks.Text += sep.GetHTML();
                }
                else setseparator = true;

                if (obj is IGetHTML)
                    lblLinks.Text += ((IGetHTML)obj).GetHTML();
            }
            SetImage();
            if (IsClickable)
                lbTitle.Text = Title;
            else
            {
                lblTitle.Text = Title;
                ibCompact.Visible = false;
            }
            base.Render(writer);
        }