Пример #1
0
        private void m_list_Added(object sender, EditableListUpdatedEventArgs <T> e)
        {
            ctlListEditor.AddListItem(new KeyValuePair <string, string>(e.UpdatedItem.Key, GetDisplayString(e.UpdatedItem.Value)), e.Index);

            if ((e.Source == EditorUpdateSource.User))
            {
                ctlListEditor.SetSelectedItem(e.UpdatedItem.Key);
                ctlListEditor.Focus();
            }

            if (Dirty != null)
            {
                Dirty(this, new DataModifiedEventArgs(null, m_list));
            }
        }