C# Class SIL.FieldWorks.FwCoreDlgControls.UpDownMeasureControl

The UpDownMeasureControl is a spinner control that handles measurements (in, cm, pt, etc)
Inheritance: System.Windows.Forms.UpDownBase, IFWDisposable
Mostrar archivo Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Property Type Description
NudgeValue void
SetMsrValue void

Public Methods

Method Description
CheckDisposed ( ) : void

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.

DownButton ( ) : void

Handles the clicking of the down button on the spin box.

UpButton ( ) : void

Handles the clicking of the up button on the spin box.

UpDownMeasureControl ( ) : System

Initializes a new instance of the T:UpDownMeasureControl class.

Protected Methods

Method Description
OnLostFocus ( EventArgs e ) : void

When focus is lost, validate the text since it may have been edited

UpdateEditText ( ) : void

Updates the text displayed in the spin box.

ValidateEditText ( ) : void

Validates the text displayed in the spin box.

Private Methods

Method Description
NudgeValue ( int sign ) : void

Nudges the value up or down. If the current value is at a multiple of the increment amount, just increment/decrement it; otherwise bump it up/down to the next multiple.

SetMsrValue ( double mptValue ) : void

Sets the value of the measurement.

Method Details

CheckDisposed() public method

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
return void

DownButton() public method

Handles the clicking of the down button on the spin box.
public DownButton ( ) : void
return void

OnLostFocus() protected method

When focus is lost, validate the text since it may have been edited
protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs
return void

UpButton() public method

Handles the clicking of the up button on the spin box.
public UpButton ( ) : void
return void

UpDownMeasureControl() public method

Initializes a new instance of the T:UpDownMeasureControl class.
public UpDownMeasureControl ( ) : System
return System

UpdateEditText() protected method

Updates the text displayed in the spin box.
protected UpdateEditText ( ) : void
return void

ValidateEditText() protected method

Validates the text displayed in the spin box.
protected ValidateEditText ( ) : void
return void