Exemple #1
0
 public void Redraw()
 {
     this.RedrawHeader();
     if (this.Items != null)
     {
         PicMenuItem item = null;
         int         nowY = this.Controls[0].Height;
         for (int i = 0; i < items.Count; i++)
         {
             item           = items[i];
             item.Location  = new Point(0, nowY);
             nowY          += item.Size.Height + margin;
             item.BackColor = this.BackColor;
             item.Width     = this.Width;
             item.ResetLocation();
             this.Controls.Add(item);
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// Removes the specified item.
 /// </summary>
 /// <param name="item">The item.</param>
 public void Remove(PicMenuItem item)
 {
     List.Remove(item);
 }
Exemple #3
0
 /// <summary>
 /// Adds the specified item.
 /// </summary>
 /// <param name="item">The item.</param>
 public void Add(PicMenuItem item)
 {
     List.Add(item);
        // item.Location = new Point();
 }
Exemple #4
0
 /// <summary>
 /// Removes the specified item.
 /// </summary>
 /// <param name="item">The item.</param>
 public void Remove(PicMenuItem item)
 {
     List.Remove(item);
 }
Exemple #5
0
 /// <summary>
 /// Adds the specified item.
 /// </summary>
 /// <param name="item">The item.</param>
 public void Add(PicMenuItem item)
 {
     List.Add(item);
     // item.Location = new Point();
 }