Ejemplo n.º 1
0
        /// <summary>
        /// Raises the <see cref="ColumnChanged" /> event.
        /// </summary>
        /// <param name="column">The <see cref="VuGroupListColumn"/> which has raised the event.</param>
        /// <param name="value">The changed value.</param>
        public virtual void OnColumnChanged(VuGroupListColumn column, object value)
        {
            if (!SuppressEntityEvents)
            {
                VuGroupListEventHandler handler = ColumnChanged;
                if (handler != null)
                {
                    handler(this, new VuGroupListEventArgs(column, value));
                }

                // warn the parent list that i have changed
                OnEntityChanged();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Raises the <see cref="ColumnChanging" /> event.
        /// </summary>
        /// <param name="column">The <see cref="VuGroupListColumn"/> which has raised the event.</param>
        /// <param name="value">The changed value.</param>
        public virtual void OnColumnChanging(VuGroupListColumn column, object value)
        {
            if (IsEntityTracked && EntityState != EntityState.Added && !EntityManager.TrackChangedEntities)
            {
                EntityManager.StopTracking(entityTrackingKey);
            }

            if (!SuppressEntityEvents)
            {
                VuGroupListEventHandler handler = ColumnChanging;
                if (handler != null)
                {
                    handler(this, new VuGroupListEventArgs(column, value));
                }
            }
        }