public BandPanel(string caption, ContentPanel content, BandTagInfo bti)
        {
            BandButton bandButton = new BandButton(caption, bti);

            Controls.Add(bandButton);
            Controls.Add(content);
        }
 public BandButton(string caption, BandTagInfo bti)
 {
     Text      = caption;
     FlatStyle = FlatStyle.Standard;
     Visible   = true;
     this.bti  = bti;
     Click    += new EventHandler(SelectBand);
 }
        public void AddBand(string caption, ContentPanel content)
        {
            content.outlookBar = this;
            int         index     = Controls.Count;
            BandTagInfo bti       = new BandTagInfo(this, index);
            BandPanel   bandPanel = new BandPanel(caption, content, bti);

            Controls.Add(bandPanel);
            UpdateBarInfo();
            RecalcLayout(bandPanel, index);
            bandPanel.BackColor = Color.Azure;
        }