/// <summary>
 ///   item has changed
 /// </summary>
 /// <param name = "source"></param>
 /// <param name = "e"></param>
 public void Item_Changed(object source, ChangedEventArgs e)
 {
     if (ChangedEvent != null && !SuspendEvents)
         ChangedEvent(source, e); // fire the column clicked event
 }
 /// <summary>
 ///   Sub Item collection changed handler
 /// </summary>
 /// <param name = "source"></param>
 /// <param name = "e"></param>
 public void SubItemCollection_Changed(object source, ChangedEventArgs e)
 {
     if (ChangedEvent != null)
     {
         e.Item = this; // add which item this came through
         ChangedEvent(this, e); // fire the column clicked event
     }
 }
 /// <summary>
 ///   Sub Item changed handler.
 /// </summary>
 /// <param name = "source"></param>
 /// <param name = "e"></param>
 public void SubItem_Changed(object source, ChangedEventArgs e)
 {
     if (ChangedEvent != null)
         ChangedEvent(source, e); // fire the column clicked event
 }
        /// <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
        }
Exemple #5
0
        /// <summary>
        ///   Column has changed, fire event
        /// </summary>
        /// <param name = "source"></param>
        /// <param name = "e"></param>
        public void Columns_Changed(object source, ChangedEventArgs e)
        {
            if (e.ChangedType != ChangedTypes.ColumnStateChanged)
                DestroyActivatedEmbedded(); // kill activated embedded object

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

            Invalidate();
        }
Exemple #6
0
        /// <summary>
        ///   Item has changed, fire event
        /// </summary>
        /// <param name = "source"></param>
        /// <param name = "e"></param>
        protected void Items_Changed(object source, ChangedEventArgs e)
        {
            //Debug.WriteLine( e.ChangedType.ToString() );
            //if ( e.ChangedType != ChangedTypes.

            // kill activated embedded object
            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))
                {
                    Invalidate();
                }
            }
        }