Exemplo n.º 1
0
        public void AddControlToSubItem(Control control, ExtendedControlListViewSubItem subitem)
        {
            this.Controls.Add(control);
            subitem.MyControl = control;
            EmbeddedControl ec;

            ec.MyControl = control;
            ec.MySubItem = subitem;
            this._controls.Add(ec);
        }
Exemplo n.º 2
0
        public void RemoveControlFromSubItem(ExtendedControlListViewSubItem subitem)
        {
            Control c = subitem.MyControl;

            for (int i = 0; i < this._controls.Count; i++)
            {
                if (((EmbeddedControl)this._controls[i]).MySubItem == subitem)
                {
                    this._controls.RemoveAt(i);
                    subitem.MyControl = null;
                    this.Controls.Remove(c);
                    c.Dispose();
                    return;
                }
            }
        }
 public void RemoveControlFromSubItem(ExtendedControlListViewSubItem subitem)
 {
     Control c = subitem.MyControl;
     for (int i = 0; i < this._controls.Count; i++)
     {
         if (((EmbeddedControl)this._controls[i]).MySubItem == subitem)
         {
             this._controls.RemoveAt(i);
             subitem.MyControl = null;
             this.Controls.Remove(c);
             c.Dispose();
             return;
         }
     }
 }
 public void AddControlToSubItem(Control control, ExtendedControlListViewSubItem subitem)
 {
     this.Controls.Add(control);
     subitem.MyControl = control;
     EmbeddedControl ec;
     ec.MyControl = control;
     ec.MySubItem = subitem;
     this._controls.Add(ec);
 }