Ejemplo n.º 1
0
        /// <summary>
        /// Column has changed, fire event
        /// </summary>
        /// <param name="source"></param>
        /// <param name="e"></param>
        public void Columns_Changed( object source, ChangedEventArgs e )
        {
            DW("Columns_Changed");

            if ( e.ChangedType != ChangedTypes.ColumnStateChanged )
                this.DestroyActivatedEmbedded();			// kill activated embedded object

            if ( ColumnChangedEvent != null )
                ColumnChangedEvent( this, e );				// fire the column clicked event

            DI("Calling Invalidate From Columns_Changed");
            Invalidate();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Item has changed, fire event
        /// </summary>
        /// <param name="source"></param>
        /// <param name="e"></param>
        protected void Items_Changed( object source, ChangedEventArgs e )
        {
            DW("GlacialList::Items_Changed");

            //Debug.WriteLine( e.ChangedType.ToString() );
            //if ( e.ChangedType != ChangedTypes.

            // kill activated embedded object
            this.DestroyActivatedEmbedded();

            if ( ItemChangedEvent != null )
                ItemChangedEvent( this, e );				// fire the column clicked event

            // only invalidate if an item that is within the visible area has changed
            if ( e.Item != null )
            {

                //				int nItemIndex = Items.FindItemIndex( e.Item );
                //				if ( ( nItemIndex >= this.vPanelScrollBar.Value ) && ( nItemIndex <  this.vPanelScrollBar.Value+this.VisibleRowsCount ) )
                if ( IsItemVisible( e.Item ) )
                {
                    DI("Calling Invalidate From Items_Changed");
                    Invalidate();
                }
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Column has changed.  Pass Event up the chain.
        /// </summary>
        /// <param name="source"></param>
        /// <param name="e"></param>
        public void GLColumn_Changed( object source, ChangedEventArgs e )
        {
            // this gets called when an item internally changes

            if ( ChangedEvent != null )
                ChangedEvent( source, e );				// fire the column clicked event
        }