/// <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();
				}
			}
		}
		/// <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();
		}
Example #3
0
 void subItemLen_ChangedEvent(object source, ChangedEventArgs e)
 {
     if (lvGroups.SelectedItems.Count == 0)
         return;
     KnownGroup kg = (KnownGroup)(((GLItem)lvGroups.SelectedItems[0]).Tag);
     GLSubItem si = (GLSubItem)source;
     kg.NumBytes = Int32.Parse(si.Text);
 }
Example #4
0
 void subItemAddr_ChangedEvent(object source, ChangedEventArgs e)
 {
     if (lvGroups.SelectedItems.Count == 0)
         return;
     KnownGroup kg = (KnownGroup)(((GLItem)lvGroups.SelectedItems[0]).Tag);
     GLSubItem si = (GLSubItem)source;
     kg.Address = si.Text;
 }
		/// <summary>
		/// item has changed
		/// </summary>
		/// <param name="source"></param>
		/// <param name="e"></param>
		public void Item_Changed( object source, ChangedEventArgs e )
		{	// this gets called when an item internally changes
			GlacialList.DW("GLItemCollection::Item_Changed");

			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 )
		{	// this gets called when an item internally changes
			GlacialList.DW("GLItem::SubItemCollection_Changed");

			if ( ChangedEvent != null )
			{
				e.Item = this;							// add which item this came through
				ChangedEvent( this, 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
		}