Class that manages a collection of CustomListColumn objects in a CustomList control
Inheritance: System.Collections.IEnumerable
Example #1
0
		//scanning of object should have taken place before this object is created

		/// <summary>
		/// Initializes a new instance of the <see cref="T:ObjRow"/> class.
		/// </summary>
		/// <param name="obj">The obj.</param>
		/// <param name="columns">The columns.</param>
		public ObjRow(object obj,CustomListColumnCollection columns)
		{
			this.obj=obj;
			this.columns=columns;

			if(cursorTimer==null)
			{
				cursorTimer = new Timer();
				cursorTimer.Interval=500;
				cursorTimer.Tick+=new EventHandler(timerTick);

				timerStarted=false;
			}

			createdNum=numCreated++;
		}
Example #2
0
        // scanning of object should have taken place before this object is created

        /// <summary>
        /// Initializes a new instance of the <see cref="T:ObjRow"/> class.
        /// </summary>
        /// <param name="obj">The obj.</param>
        /// <param name="columns">The columns.</param>
        public ObjRow(object obj, CustomListColumnCollection columns)
        {
            this.obj     = obj;
            this.columns = columns;

            if (cursorTimer == null)
            {
                cursorTimer          = new Timer();
                cursorTimer.Interval = 500;
                cursorTimer.Tick    += new EventHandler(timerTick);

                timerStarted = false;
            }

            createdNum = numCreated++;
        }
Example #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="T:CustomList"/> class.
        /// </summary>
        public CustomList()
        {
            columns      = new CustomListColumnCollection();
            columns.OffX = 1;
            columns.OffY = 1;
            columns.Font = Font;

            columns.RefreshEvent += new RefreshDelegate(Refresh);
            columns.RowMoveOver  += new RowMoveDelegate(mouseOverRows);
            columns.RowClicked   += new MouseEventHandler(rowClicked);
            columns.Parent        = this;

            items = new List <ObjRow>();

            SetStyle(ControlStyles.DoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true);

            startY = columns.HeaderHeight;

            rowType = typeof(ObjRow);
        }
Example #4
0
		/// <summary>
		/// Initializes a new instance of the <see cref="T:CustomList"/> class.
		/// </summary>
		public CustomList()
		{
			columns = new CustomListColumnCollection();
			columns.OffX=1;
			columns.OffY=1;
			columns.Font=Font;

			columns.RefreshEvent+=new RefreshDelegate(Refresh);
			columns.RowMoveOver+=new RowMoveDelegate(mouseOverRows);
			columns.RowClicked+=new MouseEventHandler(rowClicked);
			columns.Parent=this;

			items = new List<ObjRow>();			

			SetStyle(ControlStyles.DoubleBuffer|ControlStyles.AllPaintingInWmPaint|ControlStyles.UserPaint,true);		

			startY=columns.HeaderHeight;

			rowType = typeof(ObjRow);
		}