Пример #1
0
 void valuesCollection_OnAdd(object sender, ManagerCollectionEventHargs <ValidValue> e)
 {
     if (OnAdd != null)
     {
         OnAdd(this, e);
     }
 }
        private void RaiseEvent(EventType e, ValidValue Item, int Index)
        {
            var eventArgs = new ManagerCollectionEventHargs <ValidValue>();

            eventArgs.Item = Item;

            switch (e)
            {
            case EventType.Add:
                if (OnAdd != null)
                {
                    OnAdd(this, eventArgs);
                }
                break;

            case EventType.Remove:
                if (OnRemove != null)
                {
                    OnRemove(this, eventArgs);
                }
                break;

            case EventType.Insert:
                break;

            case EventType.Clear:
                if (OnClear != null)
                {
                    OnClear(this, eventArgs);
                }
                break;

            default:
                break;
            }
        }
 void ValidValues_OnAdd(object sender, ManagerCollectionEventHargs <ValidValue> e)
 {
     ((ValidValuesCollection)((RepositoryItemLookUpEdit)this.ColumnEdit).DataSource).Add(e.Item);
 }
Пример #4
0
 void ValidValues_OnAdd(object sender, ManagerCollectionEventHargs <ValidValue> e)
 {
     ((ValidValuesCollection)this.DataSource).Add(e.Item);
 }