Example #1
0
 void table_CellPropertyChanged(object sender, XPTable.Events.CellEventArgs e)
 {
     if (e.EventType != CellEventType.ValueChanged)
     {
         return;
     }
     if (Changed != null)
     {
         Changed(this, e);
     }
     UpdateIconAndInfo(e.Row);
 }
Example #2
0
 /// <summary>
 /// Raises the CellPropertyChanged event
 /// </summary>
 /// <param name="e">A CellEventArgs that contains the event data</param>
 internal void OnCellPropertyChanged(CellEventArgs e)
 {
     if (this.Table != null)
     {
         this.Table.OnCellPropertyChanged(e);
     }
 }
Example #3
0
        /// <summary>
        /// Raises the CellPropertyChanged event
        /// </summary>
        /// <param name="e">A CellEventArgs that contains the event data</param>
        internal void OnCellPropertyChanged(CellEventArgs e)
        {
            if (this.TableModel != null)
            {
                this.TableModel.OnCellPropertyChanged(e);

                if (e.EventType == CellEventType.WordWrapChanged)
                {
                    UpdateWordWrapProperties(e.Cell);
                }
            }
        }
Example #4
0
		/// <summary>
		/// Handler for a Cells PropertyChanged event
		/// </summary>
		/// <param name="sender">The object that raised the event</param>
		/// <param name="e">A CellEventArgs that contains the event data</param>
		private void cell_PropertyChanged(object sender, CellEventArgs e)
		{
			this.OnCellPropertyChanged(e);
		}
Example #5
0
		/// <summary>
		/// Raises the CellPropertyChanged event
		/// </summary>
		/// <param name="e">A CellEventArgs that contains the event data</param>
		protected internal virtual void OnCellPropertyChanged(CellEventArgs e)
		{
			if (this.CanRaiseEvents)
			{
				this.InvalidateCell(e.Row, e.Column);

				if (CellPropertyChanged != null)
				{
					CellPropertyChanged(this, e);
				}

				if (e.EventType == CellEventType.CheckStateChanged)
				{
					this.OnCellCheckChanged(new CellCheckBoxEventArgs(e.Cell, e.Column, e.Row));
				}
			}
		}
Example #6
0
        /// <summary>
        /// Raises the PropertyChanged event
        /// </summary>
        /// <param name="e">A CellEventArgs that contains the event data</param>
        protected virtual void OnPropertyChanged(CellEventArgs e)
        {
            e.SetColumn(this.Index);

            if (this.Row != null)
            {
                e.SetRow(this.Row.Index);
            }

            if (this.CanRaiseEvents)
            {
                if (this.Row != null)
                {
                    this.Row.OnCellPropertyChanged(e);
                }

                if (PropertyChanged != null)
                {
                    PropertyChanged(this, e);
                }
            }
        }