Exemplo n.º 1
0
        private void FillList(RadTokenizedTextItemCollection items)
        {
            RadListControl control = this.radAutoCompleteBox1.Items != items ?
                                     this.radListControlRecipients : this.radListControlCarbonCopy;

            control.Items.Clear();

            foreach (RadTokenizedTextItem item in items)
            {
                string text = item.Text;

                if (item.Value != null)
                {
                    text = string.Format("{0} <{1}>", text, item.Value);
                }

                control.Items.Add(new RadListDataItem(text));
            }
        }
Exemplo n.º 2
0
        private void OnItemsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
        {
            RadTokenizedTextItemCollection items = sender as RadTokenizedTextItemCollection;

            this.FillList(items);
        }