Exemple #1
0
            protected override void OnInsert(int index, object value)
            {
                ItemLegenda itemLegenda = value as ItemLegenda;

                if (itemLegenda != null)
                {
                    uCtlLegenda wserControl1 = new uCtlLegenda(itemLegenda.Titulo, itemLegenda.Cor, itemLegenda.ToolTip)
                    {
                        Dock = DockStyle.Left
                    };
                    if (!_ownerCmpLegenda.Controls
                        .OfType <uCtlLegenda>()
                        .Contains(wserControl1))
                    {
                        _ownerCmpLegenda.Controls.Add(wserControl1);
                    }
                }

                base.OnInsert(index, value);
            }
Exemple #2
0
 public int Add(ItemLegenda itemLegenda)
 {
     return(base.List.Add(itemLegenda));
 }