Exemplo n.º 1
0
        public BandPanel(string caption, ContentPanel content, BandTagInfo bti)
        {
            BandButton bandButton = new BandButton(caption, bti);

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

            Controls.Add(bandPanel);
            UpdateBarInfo();
            RecalcLayout(bandPanel, index);
        }
Exemplo n.º 4
0
 public BandButton(Image im, string caption, BandTagInfo bti)
 {
     Image       = im;
     Text        = caption;
     ImageAlign  = ContentAlignment.MiddleLeft;
     TextAlign   = ContentAlignment.MiddleCenter;
     FlatStyle   = FlatStyle.Standard;
     Visible     = true;
     this.bti    = bti;
     Click      += new EventHandler(SelectBand);
     MouseLeave += new EventHandler(OnMouseLeave);
     MouseMove  += new MouseEventHandler(OnMouseMove);
 }