Exemple #1
0
 /// <summary>
 /// Raises the node relation collection changing.
 /// </summary>
 /// <param name="relationName">Name of the relation.</param>
 /// <param name="collectionChangedType">Type of the collection changed.</param>
 /// <returns></returns>
 private bool RaiseNodeRelationCollectionChanging(string relationName, CollectionChangingType collectionChangedType)
 {
     NodeRelationCancelEventArgs nrCancelEvtArgs = new NodeRelationCancelEventArgs(relationName, collectionChangedType);
     if (this.NodeRelationCollectionChanging != null)
         NodeRelationCollectionChanging(this, nrCancelEvtArgs);
     return nrCancelEvtArgs.Cancel;
 }
        /// <summary>
        /// Raises the source list set changing event args.
        /// </summary>
        /// <param name="sourceName">Name of the source.</param>
        /// <param name="collectionChangedType">Type of the collection changed.</param>
        /// <returns></returns>
        private bool RaiseSourceListSetChangingEventArgs(string sourceName, CollectionChangingType collectionChangedType)
        {
            SourceListSetCancelEventArgs cEvtArgs = new SourceListSetCancelEventArgs(sourceName, collectionChangedType);

            if (OnSourceListSetChanging != null)
            {
                OnSourceListSetChanging(this, cEvtArgs);
            }
            return(cEvtArgs.Cancel);
        }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NodeRelationCancelEventArgs"/>.
 /// </summary>
 /// <param name="relationName">Name of the relation.</param>
 /// <param name="collectionChangedType">Type of the collection changed.</param>
 public NodeRelationCancelEventArgs(string relationName, CollectionChangingType collectionChangedType)
 {
     _relationName          = relationName;
     _collectionChangedType = collectionChangedType;
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SourceListSetCancelEventArgs"/>.
 /// </summary>
 /// <param name="sourceName">Name of the source.</param>
 /// <param name="collectionChangedType">Type of the collection changed.</param>
 public SourceListSetCancelEventArgs(string sourceName, CollectionChangingType collectionChangedType)
 {
     this._sourceName            = sourceName;
     this._collectionChangedType = collectionChangedType;
 }