예제 #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);
 }
예제 #2
0
파일: TableModel.cs 프로젝트: virl/yttrium
 /// <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);
     }
 }
예제 #3
0
파일: Row.cs 프로젝트: antiduh/XPTable
        /// <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);
                }
            }
        }
예제 #4
0
파일: Table.cs 프로젝트: nithinphilips/SMOz
		/// <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);
		}
예제 #5
0
파일: Table.cs 프로젝트: nithinphilips/SMOz
		/// <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));
				}
			}
		}
예제 #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);
                }
            }
        }