Click() public method

Called when the mouse clicks on a row
public Click ( CustomListColumn col ) : void
col CustomListColumn The column the mouse was over when the button was clicked
return void
Esempio n. 1
0
        private void rowClicked(object sender, MouseEventArgs e)
        {
//			int overY = (e.Y - (columns.HeaderHeight + yOffset)) / (Font.Height + columns.RowSpace * 2);
            if (clicked != null)
            {
                clicked.UnClick();
            }

            if (selected != null && overCol != null)
            {
                selected.Click(overCol);
            }

            clicked = selected;

            if (RowClick != null && clicked != null)
            {
                RowClick(this, clicked);
            }
        }