Example #1
0
 /// <summary>
 /// Initializes a new instance of the ColumnEventArgs class with
 /// the specified Column source, column index and event type
 /// </summary>
 /// <param name="source">The Column that Raised the event</param>
 /// <param name="index">The index of the Column</param>
 /// <param name="eventType">The type of event</param>
 /// <param name="oldValue">The old value of the changed property</param>
 public ColumnEventArgs(Column source, int index, ColumnEventType eventType, object oldValue) : base()
 {
     this.source    = source;
     this.index     = index;
     this.eventType = eventType;
     this.oldValue  = oldValue;
 }
        void ReleaseDesignerOutlets()
        {
            if (ButtonCapture != null)
            {
                ButtonCapture.Dispose();
                ButtonCapture = null;
            }

            if (ButtonClearEvents != null)
            {
                ButtonClearEvents.Dispose();
                ButtonClearEvents = null;
            }

            if (ColumnDetails != null)
            {
                ColumnDetails.Dispose();
                ColumnDetails = null;
            }

            if (ColumnEventType != null)
            {
                ColumnEventType.Dispose();
                ColumnEventType = null;
            }

            if (TableEvents != null)
            {
                TableEvents.Dispose();
                TableEvents = null;
            }
        }
Example #3
0
 internal virtual void OnAlterColumn(ColumnEventType type, int index)
 {
     if (AlterColumn != null)
     {
         AlterColumn(type, index);
     }
 }
 /// <summary>
 /// Initializes a new instance of the ColumnEventArgs class with 
 /// the specified Column source, column index and event type
 /// </summary>
 /// <param name="source">The Column that Raised the event</param>
 /// <param name="index">The index of the Column</param>
 /// <param name="eventType">The type of event</param>
 /// <param name="oldValue">The old value of the changed property</param>
 public ColumnEventArgs(Column source, int index, ColumnEventType eventType, object oldValue)
     : base()
 {
     this.source = source;
     this.index = index;
     this.eventType = eventType;
     this.oldValue = oldValue;
 }
Example #5
0
        internal void columns_AlterColumn(ColumnEventType type, int index)
        {
            switch (type)
            {
            case ColumnEventType.Add:
                this.items.Add(null);
                break;

            case ColumnEventType.Insert:
                this.items.Insert(index, null);
                break;

            case ColumnEventType.Remove:
                this.items.RemoveAt(index);
                break;

            case ColumnEventType.Clear:
                this.items.Clear();
                break;
            }
        }
		/// <summary>
		/// Initializes a new instance of the ColumnEventArgs class with 
		/// the specified Column source, column index and event type
		/// </summary>
		/// <param name="source">The Column that Raised the event</param>
		/// <param name="eventType">The type of event</param>
		/// <param name="oldValue">The old value of the changed property</param>
		public ColumnEventArgs(Column source, ColumnEventType eventType, object oldValue) : this(source, -1, eventType, oldValue)
		{

		}
Example #7
0
 /// <summary>
 /// Initializes a new instance of the ColumnEventArgs class with
 /// the specified Column source, column index and event type
 /// </summary>
 /// <param name="source">The Column that Raised the event</param>
 /// <param name="eventType">The type of event</param>
 /// <param name="oldValue">The old value of the changed property</param>
 public ColumnEventArgs(Column source, ColumnEventType eventType, object oldValue) : this(source, -1, eventType, oldValue)
 {
 }
Example #9
0
using System;