Example #1
0
        ///////////////////////////////////////////////////////////////////////////
        // IStripBar Implementation
        public void AddBand(StripBand aBand)
        {
            Bands.Add(aBand);
            aBand.Bar = this;

            if (aBand.NewRow)
            {
                StripRow row = new StripRow(this);
                Rows.Add(row);
                aBand.Row = row;

                row.Bands.Add(aBand);

                // TODO: Trigger Height-Changed Event
            }
            else
            {
                StripRow row;
                if (Rows.Count >= 1)
                {
                    row = Rows[Rows.Count - 1] as StripRow;
                }
                else
                {
                    row = new StripRow(this);
                    Rows.Add(row);
                }
                row.Bands.Add(aBand);
                aBand.Row = row;

                // Invalidate Row
                Invalidate(row.Bounds);
            }
        }
Example #2
0
        public void AddBand(StripBand aBand)
        {
            if (aBand.Height > mHeight)
            {
                mHeight = aBand.Height;
            }

            Bands.Add(aBand);
        }
Example #3
0
        public void PaintRow(PaintEventArgs aPea)
        {
            int bandCount = Bands.Count;

            for (int i = 0; i < bandCount; ++i)
            {
                StripBand currBand = Bands[i] as StripBand;
                currBand.PaintBand(aPea);
            }
        }
Example #4
0
 public void RemoveBand(StripBand aStripBand)
 {
 }
Example #5
0
        public void AddBand(StripBand aBand)
        {
            if (aBand.Height > mHeight)
            mHeight = aBand.Height;

              Bands.Add(aBand);
        }
Example #6
0
 public void RemoveBand(StripBand aStripBand)
 {
 }
Example #7
0
        ///////////////////////////////////////////////////////////////////////////
        // IStripBar Implementation
        public void AddBand(StripBand aBand)
        {
            Bands.Add(aBand);
              aBand.Bar = this;

              if (aBand.NewRow)
              {
            StripRow row = new StripRow(this);
            Rows.Add(row);
            aBand.Row = row;

            row.Bands.Add(aBand);

            // TODO: Trigger Height-Changed Event
              }
              else
              {
            StripRow row;
            if (Rows.Count >= 1)
              row = Rows[Rows.Count-1] as StripRow;
            else
            {
              row = new StripRow(this);
              Rows.Add(row);
            }
            row.Bands.Add(aBand);
            aBand.Row = row;

            // Invalidate Row
            Invalidate(row.Bounds);
              }
        }