C# Class ACAT.Extensions.Default.UI.Dialogs.ScreenLockSettingsForm

Inheritance: System.Windows.Forms.Form
Show file Open project: brlima94/acat-localization

Public Methods

Method Description
OnButtonActuated ( Widget widget ) : void

Triggered when a widget is triggered

OnPause ( ) : void

Pauses the scanner

OnResume ( ) : void

Resumes paused scanner

OnRunCommand ( string command, bool &handled ) : void

Not used

ScreenLockSettingsForm ( ) : System

Initializes a new instance of the class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
CheckPINCode ( String strPIN, char charMaxDigit, String &errorMessage ) : Boolean

Validates the pin entered so far to make sure it is all digits, is within the length specified

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

ScreenLockSettingsForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

Form is closing. Release resources

ScreenLockSettingsForm_Load ( object sender, EventArgs e ) : void

Form has been loaded. Initialize

WndProc ( Message &m ) : void
initWidgetSettings ( ) : void

Initialize controls on the form based on the settings (the pin in this case)

onCancel ( ) : void

Use wants to cancel out

onOK ( ) : void

User pressed OK. Check the pin is valid, and quit

subscribeToEvents ( ) : void

Subscribes to all the events triggered by the widgets and the interpreter

tbPINCode_KeyPress ( object sender, KeyPressEventArgs e ) : void

Key press event handler

tbPINCode_TextChanged ( object sender, EventArgs e ) : void

User entered something. Set the dirty flag

updateSettingsFromUI ( ) : ACATPreferences

Updates the preferences based on values from the form (the pincode in this case). Returns a new Preferences object

widget_EvtValueChanged ( object sender, WidgetEventArgs e ) : void

Something changed. Set the dirty flag

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

OnButtonActuated() public method

Triggered when a widget is triggered
public OnButtonActuated ( Widget widget ) : void
widget Widget Which one triggered?
return void

OnPause() public method

Pauses the scanner
public OnPause ( ) : void
return void

OnResume() public method

Resumes paused scanner
public OnResume ( ) : void
return void

OnRunCommand() public method

Not used
public OnRunCommand ( string command, bool &handled ) : void
command string
handled bool
return void

ScreenLockSettingsForm() public method

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