C# Class SourceGrid.Cells.Controllers.Button

Button controller is used to executed a specific action when the user click on a cell or when the user press the Enter or Space key (using the OnKeyDown event). Is normally used with the Link or Button Cell. Override the OnExecuted to add your code or use the Executed event.
Inheritance: ControllerBase
ファイルを表示 Open project: zhuangyy/Motion Class Usage Examples

Public Methods

Method Description
OnClick ( CellContext sender, EventArgs e ) : void
OnExecuted ( CellContext sender, EventArgs e ) : void
OnKeyDown ( CellContext sender, KeyEventArgs e ) : void
OnMouseDown ( CellContext sender, MouseEventArgs e ) : void

Method Details

OnClick() public method

public OnClick ( CellContext sender, EventArgs e ) : void
sender CellContext
e System.EventArgs
return void

OnExecuted() public method

public OnExecuted ( CellContext sender, EventArgs e ) : void
sender CellContext
e System.EventArgs
return void

OnKeyDown() public method

public OnKeyDown ( CellContext sender, KeyEventArgs e ) : void
sender CellContext
e System.Windows.Forms.KeyEventArgs
return void

OnMouseDown() public method

public OnMouseDown ( CellContext sender, MouseEventArgs e ) : void
sender CellContext
e System.Windows.Forms.MouseEventArgs
return void